Skip to content

Commit 9959376

Browse files
YueHaibingmartinkpetersen
authored andcommitted
scsi: bnx2i: remove set but not used variable 'cid_num'
Fixes gcc '-Wunused-but-set-variable' warning: drivers/scsi/bnx2i/bnx2i_hwi.c: In function 'bnx2i_process_ofld_cmpl': drivers/scsi/bnx2i/bnx2i_hwi.c:2430:6: warning: variable 'cid_num' set but not used [-Wunused-but-set-variable] It never used since commit cf4e636 ("[SCSI] bnx2i: Add bnx2i iSCSI driver.") Signed-off-by: YueHaibing <yuehaibing@huawei.com> Acked-by: Nilesh Javali <nilesh.javali@cavium.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
1 parent 1794ef2 commit 9959376

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

drivers/scsi/bnx2i/bnx2i_hwi.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2433,7 +2433,6 @@ static void bnx2i_process_ofld_cmpl(struct bnx2i_hba *hba,
24332433
{
24342434
u32 cid_addr;
24352435
struct bnx2i_endpoint *ep;
2436-
u32 cid_num;
24372436

24382437
ep = bnx2i_find_ep_in_ofld_list(hba, ofld_kcqe->iscsi_conn_id);
24392438
if (!ep) {
@@ -2468,7 +2467,6 @@ static void bnx2i_process_ofld_cmpl(struct bnx2i_hba *hba,
24682467
} else {
24692468
ep->state = EP_STATE_OFLD_COMPL;
24702469
cid_addr = ofld_kcqe->iscsi_conn_context_id;
2471-
cid_num = bnx2i_get_cid_num(ep);
24722470
ep->ep_cid = cid_addr;
24732471
ep->qp.ctx_base = NULL;
24742472
}

0 commit comments

Comments
 (0)