* [PATCH] scsi: ufs: use true for bool variables in ufshcd_complete_dev_init()
@ 2020-04-26 9:43 Jason Yan
2020-04-27 22:49 ` Martin K. Petersen
0 siblings, 1 reply; 2+ messages in thread
From: Jason Yan @ 2020-04-26 9:43 UTC (permalink / raw)
To: alim.akhtar, avri.altman, jejb, martin.petersen, stanley.chu,
linux-scsi, linux-kernel
Cc: Jason Yan
Fix the following coccicheck warning:
drivers/scsi/ufs/ufshcd.c:4140:6-14: WARNING: Assignment of 0/1 to bool
variable
Signed-off-by: Jason Yan <yanaijie@huawei.com>
---
drivers/scsi/ufs/ufshcd.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/scsi/ufs/ufshcd.c b/drivers/scsi/ufs/ufshcd.c
index 52990c39bc16..fd1541111cc3 100644
--- a/drivers/scsi/ufs/ufshcd.c
+++ b/drivers/scsi/ufs/ufshcd.c
@@ -4137,7 +4137,7 @@ static int ufshcd_complete_dev_init(struct ufs_hba *hba)
{
int i;
int err;
- bool flag_res = 1;
+ bool flag_res = true;
err = ufshcd_query_flag_retry(hba, UPIU_QUERY_OPCODE_SET_FLAG,
QUERY_FLAG_IDN_FDEVICEINIT, NULL);
--
2.21.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] scsi: ufs: use true for bool variables in ufshcd_complete_dev_init()
2020-04-26 9:43 [PATCH] scsi: ufs: use true for bool variables in ufshcd_complete_dev_init() Jason Yan
@ 2020-04-27 22:49 ` Martin K. Petersen
0 siblings, 0 replies; 2+ messages in thread
From: Martin K. Petersen @ 2020-04-27 22:49 UTC (permalink / raw)
To: alim.akhtar, Jason Yan, jejb, linux-kernel, linux-scsi,
avri.altman, stanley.chu
Cc: Martin K . Petersen
On Sun, 26 Apr 2020 17:43:05 +0800, Jason Yan wrote:
> Fix the following coccicheck warning:
>
> drivers/scsi/ufs/ufshcd.c:4140:6-14: WARNING: Assignment of 0/1 to bool
> variable
Applied to 5.8/scsi-queue, thanks!
[1/1] scsi: ufs: Use true for bool variables in ufshcd_complete_dev_init()
https://git.kernel.org/mkp/scsi/c/7dfdcc393dcd
--
Martin K. Petersen Oracle Linux Engineering
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-04-27 22:50 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-26 9:43 [PATCH] scsi: ufs: use true for bool variables in ufshcd_complete_dev_init() Jason Yan
2020-04-27 22:49 ` 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.