]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
staging: erofs: fix warning Comparison to bool
authorHariprasad Kelam <hariprasad.kelam@gmail.com>
Sat, 8 Jun 2019 09:39:37 +0000 (15:09 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 9 Jun 2019 11:07:23 +0000 (13:07 +0200)
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/erofs/unzip_vle.c

index 9ecaa872bae8de7af47cc7ad0bede41048adabcc..f3d0d2c03939e852cdc13d4167538afa0c61b95d 100644 (file)
@@ -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: