Skip to content

Commit 60f537d

Browse files
intel-lab-lkpmartinkpetersen
authored andcommitted
scsi: bnx2fc: fix boolreturn.cocci warnings
drivers/scsi/bnx2fc/bnx2fc_hwi.c:1019:9-10: WARNING: return of 0/1 in function 'bnx2fc_pending_work' with return type bool Return statements in functions returning bool should use true/false instead of 1/0. Generated by: scripts/coccinelle/misc/boolreturn.cocci Fixes: 7733111 ("scsi: bnx2fc: Process the RQE with CQE in interrupt context") CC: Javed Hasan <[email protected]> Acked-by: Javed Hasan <[email protected]> Signed-off-by: kbuild test robot <[email protected]> Signed-off-by: Martin K. Petersen <[email protected]>
1 parent cec9cba commit 60f537d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

drivers/scsi/bnx2fc/bnx2fc_hwi.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1016,7 +1016,7 @@ static bool bnx2fc_pending_work(struct bnx2fc_rport *tgt, unsigned int wqe)
10161016
xid = wqe & FCOE_PEND_WQ_CQE_TASK_ID;
10171017
if (xid >= hba->max_tasks) {
10181018
pr_err(PFX "ERROR:xid out of range\n");
1019-
return 0;
1019+
return false;
10201020
}
10211021

10221022
task_idx = xid / BNX2FC_TASKS_PER_PAGE;
@@ -1059,14 +1059,14 @@ static bool bnx2fc_pending_work(struct bnx2fc_rport *tgt, unsigned int wqe)
10591059
list_add_tail(&work->list, &fps->work_list);
10601060
wake_up_process(fps->iothread);
10611061
spin_unlock_bh(&fps->fp_work_lock);
1062-
return 1;
1062+
return true;
10631063
}
10641064
}
10651065
spin_unlock_bh(&fps->fp_work_lock);
10661066
bnx2fc_process_cq_compl(tgt, wqe,
10671067
rq_data_buff, num_rq, task);
10681068

1069-
return 1;
1069+
return true;
10701070
}
10711071

10721072
int bnx2fc_process_new_cqes(struct bnx2fc_rport *tgt)

0 commit comments

Comments
 (0)