The variable 'rc' is initialized to 0 and returned at the end of
bng_re_process_qp_event(), but it is never modified in between.
Simplify the function by removing the redundant variable and returning 0
directly. This cleans up the code and avoids potential compiler warnings
about unused variables.
Signed-off-by: Rohit Chavan <roheetchavan@gmail.com>
Link: https://patch.msgid.link/20260505085709.1755534-1-roheetchavan@gmail.com
Reviewed-by: Siva Reddy Kallam <siva.kallam@broadcom.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
bool is_waiter_alive;
struct pci_dev *pdev;
u32 wait_cmds = 0;
- int rc = 0;
pdev = rcfw->pdev;
switch (qp_event->event) {
"rcfw timedout: cookie = %#x, free_slots = %d",
cookie, crsqe->free_slots);
spin_unlock(&hwq->lock);
- return rc;
+ return 0;
}
if (crsqe->is_waiter_alive) {
spin_unlock(&hwq->lock);
}
*num_wait += wait_cmds;
- return rc;
+ return 0;
}
/* function events */