[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <1586835724-45738-1-git-send-email-zou_wei@huawei.com>
Date: Tue, 14 Apr 2020 11:42:04 +0800
From: Zou Wei <zou_wei@...wei.com>
To: <akpm@...ux-foundation.org>, <linux-mm@...ck.org>,
<linux-kernel@...r.kernel.org>
CC: Zou Wei <zou_wei@...wei.com>
Subject: [PATCH -next] mm/usercopy: fix warning Comparison to bool
fix below warnings reported by coccicheck
mm/usercopy.c:304:5-18: WARNING: Comparison to bool
Reported-by: Hulk Robot <hulkci@...wei.com>
Signed-off-by: Zou Wei <zou_wei@...wei.com>
---
mm/usercopy.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/mm/usercopy.c b/mm/usercopy.c
index 660717a..04346cf 100644
--- a/mm/usercopy.c
+++ b/mm/usercopy.c
@@ -301,7 +301,7 @@ __setup("hardened_usercopy=", parse_hardened_usercopy);
static int __init set_hardened_usercopy(void)
{
- if (enable_checks == false)
+ if (!enable_checks)
static_branch_enable(&bypass_usercopy_checks);
return 1;
}
--
2.6.2
Powered by blists - more mailing lists