On Fri, Jun 16, 2023 at 11:46:59AM +0530, Kashyap Desai wrote: > The patch 691eb7c6110f: "RDMA/bnxt_re: handle command > completions after driver detect a timedout" introduced code resulting in > below warning issued by the smatch static checker. > > drivers/infiniband/hw/bnxt_re/qplib_rcfw.c:513 __bnxt_qplib_rcfw_send_message() > warn: duplicate check 'rc' (previous on line 506) > > Fix the warning by removing incorrect code block. > > Fixes: 691eb7c6110f ("RDMA/bnxt_re: handle command completions after driver detect a timedout") > Reported-by: Dan Carpenter <dan.carpenter@xxxxxxxxxx> > Signed-off-by: Kashyap Desai <kashyap.desai@xxxxxxxxxxxx> > Signed-off-by: Selvin Xavier <selvin.xavier@xxxxxxxxxxxx> > --- > drivers/infiniband/hw/bnxt_re/qplib_rcfw.c | 6 ------ > 1 file changed, 6 deletions(-) Both applied to for-next, thanks Jason