Commit 855085d9 authored by YueHaibing's avatar YueHaibing Committed by Jason Gunthorpe

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: 6c52fdc2 ("rdma/siw: connection management")
Reported-by: default avatarHulk Robot <hulkci@huawei.com>
Signed-off-by: default avatarYueHaibing <yuehaibing@huawei.com>
Reviewed-by: default avatarBernard Metzler <bmt@zurich.ibm.com>
Signed-off-by: default avatarJason Gunthorpe <jgg@mellanox.com>
parent b45305d7
......@@ -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) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment