Content-Type: multipart/mixed; boundary="===============4094037081983799894==" MIME-Version: 1.0 From: kernel test robot To: kbuild-all@lists.01.org Subject: [PATCH] block: fix boolconv.cocci warnings Date: Mon, 17 Aug 2020 15:55:59 +0800 Message-ID: <20200817075559.GA149398@7edacc24721b> In-Reply-To: <5b932aa51fc2b46c381d7b83d591a6ddbf05b199.1597637287.git.baolin.wang@linux.alibaba.com> List-Id: --===============4094037081983799894== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: kernel test robot block/blk-mq-sched.c:404:39-44: WARNING: conversion to bool not needed here Remove unneeded conversion to bool Semantic patch information: Relational and logical operators evaluate to bool, explicit conversion is overly verbose and unneeded. Generated by: scripts/coccinelle/misc/boolconv.cocci CC: Baolin Wang Signed-off-by: kernel test robot --- url: https://github.com/0day-ci/linux/commits/Baolin-Wang/Some-clean-ups= -for-bio-merge/20200817-121114 base: https://git.kernel.org/pub/scm/linux/kernel/git/axboe/linux-block.g= it for-next Please take the patch only if it's a positive warning. Thanks! blk-mq-sched.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/block/blk-mq-sched.c +++ b/block/blk-mq-sched.c @@ -401,7 +401,7 @@ bool blk_mq_bio_list_merge(struct reques if (merge =3D=3D BIO_MERGE_NONE) continue; = - return merge =3D=3D BIO_MERGE_OK ? true: false; + return merge =3D=3D BIO_MERGE_OK; } = return false; --===============4094037081983799894==--