* [PATCH] staging: erofs: fix warning Comparison to bool
@ 2019-06-08 9:39 Hariprasad Kelam
2019-06-08 12:06 ` Gao Xiang
2019-06-11 1:40 ` Chao Yu
0 siblings, 2 replies; 3+ messages in thread
From: Hariprasad Kelam @ 2019-06-08 9:39 UTC (permalink / raw)
To: Gao Xiang, Chao Yu, Greg Kroah-Hartman, linux-erofs, devel, linux-kernel
fix below warnings reported by coccicheck
drivers/staging/erofs/unzip_vle.c:332:11-18: WARNING: Comparison to bool
Signed-off-by: Hariprasad Kelam <hariprasad.kelam@gmail.com>
---
drivers/staging/erofs/unzip_vle.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/staging/erofs/unzip_vle.c b/drivers/staging/erofs/unzip_vle.c
index 9ecaa87..f3d0d2c 100644
--- a/drivers/staging/erofs/unzip_vle.c
+++ b/drivers/staging/erofs/unzip_vle.c
@@ -329,7 +329,7 @@ try_to_claim_workgroup(struct z_erofs_vle_workgroup *grp,
z_erofs_vle_owned_workgrp_t *owned_head,
bool *hosted)
{
- DBG_BUGON(*hosted == true);
+ DBG_BUGON(*hosted);
/* let's claim these following types of workgroup */
retry:
--
2.7.4
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] staging: erofs: fix warning Comparison to bool
2019-06-08 9:39 [PATCH] staging: erofs: fix warning Comparison to bool Hariprasad Kelam
@ 2019-06-08 12:06 ` Gao Xiang
2019-06-11 1:40 ` Chao Yu
1 sibling, 0 replies; 3+ messages in thread
From: Gao Xiang @ 2019-06-08 12:06 UTC (permalink / raw)
To: Hariprasad Kelam
Cc: Gao Xiang, Chao Yu, Greg Kroah-Hartman, linux-erofs, devel, linux-kernel
On 2019/6/8 ??????5:39, Hariprasad Kelam wrote:
> fix below warnings reported by coccicheck
>
> drivers/staging/erofs/unzip_vle.c:332:11-18: WARNING: Comparison to bool
>
> Signed-off-by: Hariprasad Kelam <hariprasad.kelam@gmail.com>
Reviewed-by: Gao Xiang <gaoxiang25@huawei.com>
Thanks,
Gao Xiang
> ---
> drivers/staging/erofs/unzip_vle.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/staging/erofs/unzip_vle.c b/drivers/staging/erofs/unzip_vle.c
> index 9ecaa87..f3d0d2c 100644
> --- a/drivers/staging/erofs/unzip_vle.c
> +++ b/drivers/staging/erofs/unzip_vle.c
> @@ -329,7 +329,7 @@ try_to_claim_workgroup(struct z_erofs_vle_workgroup *grp,
> z_erofs_vle_owned_workgrp_t *owned_head,
> bool *hosted)
> {
> - DBG_BUGON(*hosted == true);
> + DBG_BUGON(*hosted);
>
> /* let's claim these following types of workgroup */
> retry:
>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] staging: erofs: fix warning Comparison to bool
2019-06-08 9:39 [PATCH] staging: erofs: fix warning Comparison to bool Hariprasad Kelam
2019-06-08 12:06 ` Gao Xiang
@ 2019-06-11 1:40 ` Chao Yu
1 sibling, 0 replies; 3+ messages in thread
From: Chao Yu @ 2019-06-11 1:40 UTC (permalink / raw)
To: Hariprasad Kelam, Gao Xiang, Greg Kroah-Hartman, linux-erofs,
devel, linux-kernel
On 2019/6/8 17:39, Hariprasad Kelam wrote:
> fix below warnings reported by coccicheck
>
> drivers/staging/erofs/unzip_vle.c:332:11-18: WARNING: Comparison to bool
>
> Signed-off-by: Hariprasad Kelam <hariprasad.kelam@gmail.com>
Reviewed-by: Chao Yu <yuchao0@huawei.com>
Thanks,
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2019-06-11 1:40 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-06-08 9:39 [PATCH] staging: erofs: fix warning Comparison to bool Hariprasad Kelam
2019-06-08 12:06 ` Gao Xiang
2019-06-11 1:40 ` Chao Yu
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).