scsi: vmw_pvscsi: Use true, false for adapter->use_msg
authorJason Yan <yanaijie@huawei.com>
Thu, 30 Apr 2020 12:17:29 +0000 (20:17 +0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Fri, 8 May 2020 02:03:54 +0000 (22:03 -0400)
Fix the following coccicheck warning:

drivers/scsi/vmw_pvscsi.c:911:2-18: WARNING: Assignment of 0/1 to bool
variable

Link: https://lore.kernel.org/r/20200430121729.15064-1-yanaijie@huawei.com
Signed-off-by: Jason Yan <yanaijie@huawei.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/vmw_pvscsi.c

index c3f010df641efa1b569fb014046af4b954b3243d..8dbb4db6831afbe0bc3e65c67a69763f76990999 100644 (file)
@@ -908,7 +908,7 @@ static int pvscsi_host_reset(struct scsi_cmnd *cmd)
        use_msg = adapter->use_msg;
 
        if (use_msg) {
-               adapter->use_msg = 0;
+               adapter->use_msg = false;
                spin_unlock_irqrestore(&adapter->hw_lock, flags);
 
                /*