diff options
author | Jason Yan <yanaijie@huawei.com> | 2020-04-30 15:18:00 +0300 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2020-05-08 04:57:47 +0300 |
commit | dbe6f49259dacc073c1ae602f383c177f57b1b8a (patch) | |
tree | 2a86abc5d33db4887242a78b54f1932c8326ae73 /drivers/scsi/qla2xxx/qla_attr.c | |
parent | bda552a7741a23708823c6e87a39d9a956087ac0 (diff) | |
download | linux-dbe6f49259dacc073c1ae602f383c177f57b1b8a.tar.xz |
scsi: qla2xxx: Use true, false for ha->fw_dumped
Fix the following coccicheck warning:
drivers/scsi/qla2xxx/qla_tmpl.c:1120:2-20: WARNING: Assignment of 0/1 to
bool variable
Link: https://lore.kernel.org/r/20200430121800.15323-1-yanaijie@huawei.com
Signed-off-by: Jason Yan <yanaijie@huawei.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/qla2xxx/qla_attr.c')
-rw-r--r-- | drivers/scsi/qla2xxx/qla_attr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/qla2xxx/qla_attr.c b/drivers/scsi/qla2xxx/qla_attr.c index e83e44ef7083..4ee1a75e54ad 100644 --- a/drivers/scsi/qla2xxx/qla_attr.c +++ b/drivers/scsi/qla2xxx/qla_attr.c @@ -84,7 +84,7 @@ qla2x00_sysfs_write_fw_dump(struct file *filp, struct kobject *kobj, qla82xx_md_prep(vha); } ha->fw_dump_reading = 0; - ha->fw_dumped = 0; + ha->fw_dumped = false; break; case 1: if (ha->fw_dumped && !ha->fw_dump_reading) { |