aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/sw
diff options
context:
space:
mode:
authorYueHaibing <yuehaibing@huawei.com>2019-07-11 15:12:13 +0800
committerJason Gunthorpe <jgg@mellanox.com>2019-07-11 11:41:10 -0300
commit855085d9686e107b77a1bdb935224a238a9fd8b9 (patch)
treea7bfca108e189e6694016767b50dc6f056226010 /drivers/infiniband/sw
parentrdma/siw: Add missing dependencies on LIBCRC32C and DMA_VIRT_OPS (diff)
downloadlinux-dev-855085d9686e107b77a1bdb935224a238a9fd8b9.tar.xz
linux-dev-855085d9686e107b77a1bdb935224a238a9fd8b9.zip
rdma/siw: Remove set but not used variable 's'
Fixes gcc '-Wunused-but-set-variable' warning: drivers/infiniband/sw/siw/siw_cm.c: In function siw_cm_llp_state_change: drivers/infiniband/sw/siw/siw_cm.c:1278:17: warning: variable s set but not used [-Wunused-but-set-variable] Fixes: 6c52fdc244b5 ("rdma/siw: connection management") Reported-by: Hulk Robot <hulkci@huawei.com> Signed-off-by: YueHaibing <yuehaibing@huawei.com> Reviewed-by: Bernard Metzler <bmt@zurich.ibm.com> Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Diffstat (limited to 'drivers/infiniband/sw')
-rw-r--r--drivers/infiniband/sw/siw/siw_cm.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/infiniband/sw/siw/siw_cm.c b/drivers/infiniband/sw/siw/siw_cm.c
index c25be723c15b..43f7f12e5f7f 100644
--- a/drivers/infiniband/sw/siw/siw_cm.c
+++ b/drivers/infiniband/sw/siw/siw_cm.c
@@ -1275,7 +1275,6 @@ static void siw_cm_llp_error_report(struct sock *sk)
static void siw_cm_llp_state_change(struct sock *sk)
{
struct siw_cep *cep;
- struct socket *s;
void (*orig_state_change)(struct sock *s);
read_lock(&sk->sk_callback_lock);
@@ -1288,8 +1287,6 @@ static void siw_cm_llp_state_change(struct sock *sk)
}
orig_state_change = cep->sk_state_change;
- s = sk->sk_socket;
-
siw_dbg_cep(cep, "state: %d\n", cep->state);
switch (sk->sk_state) {