Skip to content

Commit af0653d

Browse files
Mao Wenanjgunthorpe
authored andcommitted
RDMA/siw: Remove set but not used variables 'rv'
Fixes gcc '-Wunused-but-set-variable' warning: drivers/infiniband/sw/siw/siw_cm.c: In function siw_cep_set_inuse: drivers/infiniband/sw/siw/siw_cm.c:223:6: warning: variable rv set but not used [-Wunused-but-set-variable] Fixes: 6c52fdc ("rdma/siw: connection management") Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mao Wenan <[email protected]> Reviewed-by: Bernard Metzler <[email protected]> Signed-off-by: Jason Gunthorpe <[email protected]>
1 parent b7f406b commit af0653d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

drivers/infiniband/sw/siw/siw_cm.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -220,13 +220,12 @@ static void siw_put_work(struct siw_cm_work *work)
220220
static void siw_cep_set_inuse(struct siw_cep *cep)
221221
{
222222
unsigned long flags;
223-
int rv;
224223
retry:
225224
spin_lock_irqsave(&cep->lock, flags);
226225

227226
if (cep->in_use) {
228227
spin_unlock_irqrestore(&cep->lock, flags);
229-
rv = wait_event_interruptible(cep->waitq, !cep->in_use);
228+
wait_event_interruptible(cep->waitq, !cep->in_use);
230229
if (signal_pending(current))
231230
flush_signals(current);
232231
goto retry;

0 commit comments

Comments
 (0)