All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] scsi: vmw_pvscsi: use true,false for adapter->use_msg
@ 2020-04-30 12:17 Jason Yan
  2020-05-08  2:54 ` Martin K. Petersen
  0 siblings, 1 reply; 2+ messages in thread
From: Jason Yan @ 2020-04-30 12:17 UTC (permalink / raw)
  To: jgill, pv-drivers, jejb, martin.petersen, thellstrom, linux-scsi,
	linux-kernel
  Cc: Jason Yan

Fix the following coccicheck warning:

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

Signed-off-by: Jason Yan <yanaijie@huawei.com>
---
 drivers/scsi/vmw_pvscsi.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/scsi/vmw_pvscsi.c b/drivers/scsi/vmw_pvscsi.c
index c3f010df641e..8dbb4db6831a 100644
--- a/drivers/scsi/vmw_pvscsi.c
+++ b/drivers/scsi/vmw_pvscsi.c
@@ -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);
 
 		/*
-- 
2.21.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] scsi: vmw_pvscsi: use true,false for adapter->use_msg
  2020-04-30 12:17 [PATCH] scsi: vmw_pvscsi: use true,false for adapter->use_msg Jason Yan
@ 2020-05-08  2:54 ` Martin K. Petersen
  0 siblings, 0 replies; 2+ messages in thread
From: Martin K. Petersen @ 2020-05-08  2:54 UTC (permalink / raw)
  To: jejb, Jason Yan, thellstrom, pv-drivers, linux-scsi, linux-kernel, jgill
  Cc: Martin K . Petersen

On Thu, 30 Apr 2020 20:17:29 +0800, Jason Yan wrote:

> Fix the following coccicheck warning:
> 
> drivers/scsi/vmw_pvscsi.c:911:2-18: WARNING: Assignment of 0/1 to bool
> variable

Applied to 5.8/scsi-queue, thanks!

[1/1] scsi: vmw_pvscsi: Use true, false for adapter->use_msg
      https://git.kernel.org/mkp/scsi/c/013f69a931e7

-- 
Martin K. Petersen	Oracle Linux Engineering

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-05-08  2:55 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-30 12:17 [PATCH] scsi: vmw_pvscsi: use true,false for adapter->use_msg Jason Yan
2020-05-08  2:54 ` Martin K. Petersen

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.