scsi: bnx2fc: Removal of unused variables.
Subsystems (2)
Javed Hasan
maintainerPATCH 1/1 scsi: bnx2fc: Removal of unused variables.
Removed all the unused variables.
Reported-by kbuild test robot <[email protected]>
Signed-off-by Javed Hasan <[email protected]>
--- drivers/scsi/bnx2fc/bnx2fc_hwi.c | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-)
drivers/scsi/bnx2fc/bnx2fc_hwi.c +1 -15
@@ -635,7 +635,6 @@ static void bnx2fc_process_unsol_compl(struct bnx2fc_rport *tgt, u16 wqe)struct bnx2fc_cmd *io_req =NULL ;struct bnx2fc_interface *interface = tgt->port->priv;struct bnx2fc_hba *hba = interface->hba; -int task_idx, index;int rc =0 ;u64 err_warn_bit_map;u8 err_warn =0xff ;
@@ -701,15 +700,12 @@ static void bnx2fc_process_unsol_compl(struct bnx2fc_rport *tgt, u16 wqe)BNX2FC_TGT_DBG (tgt,"buf_offsets - tx = 0x%x, rx = 0x%x\n" , err_entry->data.tx_buf_off, err_entry->data.rx_buf_off); -if (xid > hba->max_xid) {BNX2FC_TGT_DBG (tgt,"xid(0x%x) out of FW range\n" , xid); goto ret_err_rqe; } - task_idx = xid /BNX2FC_TASKS_PER_PAGE ; - index = xid %BNX2FC_TASKS_PER_PAGE ; io_req = (struct bnx2fc_cmd *)hba->cmd_mgr->cmds[xid];if (!io_req)
@@ -833,8 +829,6 @@ static void bnx2fc_process_unsol_compl(struct bnx2fc_rport *tgt, u16 wqe) }BNX2FC_TGT_DBG (tgt,"warn = 0x%x\n" , err_warn); - task_idx = xid /BNX2FC_TASKS_PER_PAGE ; - index = xid %BNX2FC_TASKS_PER_PAGE ; io_req = (struct bnx2fc_cmd *)hba->cmd_mgr->cmds[xid];if (!io_req) goto ret_warn_rqe;
@@ -1007,7 +1001,6 @@ static bool bnx2fc_pending_work(struct bnx2fc_rport *tgt, unsigned int wqe)unsigned char *rq_data =NULL ;unsigned char rq_data_buff[BNX2FC_RQ_BUF_SZ ];int task_idx, index; -unsigned char *dummy;u16 xid;u8 num_rq;int i;
@@ -1037,7 +1030,7 @@ static bool bnx2fc_pending_work(struct bnx2fc_rport *tgt, unsigned int wqe)if (num_rq >1 ) {/* We do not need extra sense data */ for (i =1 ; i < num_rq; i++) - dummy =bnx2fc_get_next_rqe (tgt,1 ); +bnx2fc_get_next_rqe (tgt,1 ); }if (rq_data)
@@ -1509,7 +1502,6 @@ void bnx2fc_init_seq_cleanup_task(struct bnx2fc_cmd *seq_clnp_req,u64 phys_addr = (u64 )orig_io_req->bd_tbl->bd_tbl_dma;u32 orig_offset = offset;int bd_count; -int orig_task_idx, index;int i;memset (task,0 ,sizeof (struct fcoe_task_ctx_entry ));
@@ -1559,8 +1551,6 @@ void bnx2fc_init_seq_cleanup_task(struct bnx2fc_cmd *seq_clnp_req, offset;/* adjusted offset */ task->txwr_only.sgl_ctx.sgl.mul_sgl.cur_sge_idx = i; }else { - orig_task_idx = orig_xid /BNX2FC_TASKS_PER_PAGE ; - index = orig_xid %BNX2FC_TASKS_PER_PAGE ;/* Multiple SGEs were used for this IO */ sgl = &task->rxwr_only.union_ctx.read_info.sgl_ctx.sgl;
@@ -2088,11 +2078,7 @@ static int bnx2fc_allocate_hash_table(struct bnx2fc_hba *hba) pbl = hba->hash_tbl_pbl; i =0 ;while (*pbl && *(pbl +1 )) { -u32 lo; -u32 hi; - lo = *pbl; ++pbl; - hi = *pbl; ++pbl; ++i; }
Signature · 1 line
1.8.3.1
Martin K. Petersen
AppliedQuoted 1 line · Javed Hasan
Removed all the unused variables.
Applied to 5.9/scsi-queue, thanks!
[1/1] scsi: bnx2fc: Removal of unused variables
https://git.kernel.org/mkp/scsi/c/37d090671720
Signature · 1 line
Martin K. Petersen Oracle Linux Engineering