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>
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);
}
orig_state_change = cep->sk_state_change;
- s = sk->sk_socket;
-
siw_dbg_cep(cep, "state: %d\n", cep->state);
switch (sk->sk_state) {