Commit bda552a7 authored by Jason Yan's avatar Jason Yan Committed by Martin K. Petersen

scsi: qla2xxx: Use true, false for need_mpi_reset

Fix the following coccicheck warning:

drivers/scsi/qla2xxx/qla_tmpl.c:1031:6-20: WARNING: Assignment of 0/1 to
bool variable
drivers/scsi/qla2xxx/qla_tmpl.c:1062:3-17: WARNING: Assignment of 0/1 to
bool variable

Link: https://lore.kernel.org/r/20200430121751.15232-1-yanaijie@huawei.comReviewed-by: default avatarHimanshu Madhani <himanshu.madhani@oracle.com>
Signed-off-by: default avatarJason Yan <yanaijie@huawei.com>
Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
parent 1b007f96
...@@ -1028,7 +1028,7 @@ void ...@@ -1028,7 +1028,7 @@ void
qla27xx_mpi_fwdump(scsi_qla_host_t *vha, int hardware_locked) qla27xx_mpi_fwdump(scsi_qla_host_t *vha, int hardware_locked)
{ {
ulong flags = 0; ulong flags = 0;
bool need_mpi_reset = 1; bool need_mpi_reset = true;
#ifndef __CHECKER__ #ifndef __CHECKER__
if (!hardware_locked) if (!hardware_locked)
...@@ -1059,7 +1059,7 @@ qla27xx_mpi_fwdump(scsi_qla_host_t *vha, int hardware_locked) ...@@ -1059,7 +1059,7 @@ qla27xx_mpi_fwdump(scsi_qla_host_t *vha, int hardware_locked)
"-> fwdt1 fwdump residual=%+ld\n", "-> fwdt1 fwdump residual=%+ld\n",
fwdt->dump_size - len); fwdt->dump_size - len);
} else { } else {
need_mpi_reset = 0; need_mpi_reset = false;
} }
vha->hw->mpi_fw_dump_len = len; vha->hw->mpi_fw_dump_len = len;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment