[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20230524085157.59aeebea@kernel.org>
Date: Wed, 24 May 2023 08:51:57 -0700
From: Jakub Kicinski <kuba@...nel.org>
To: Jiapeng Chong <jiapeng.chong@...ux.alibaba.com>
Cc: jesse.brandeburg@...el.com, anthony.l.nguyen@...el.com,
davem@...emloft.net, edumazet@...gle.com, pabeni@...hat.com,
intel-wired-lan@...ts.osuosl.org, netdev@...r.kernel.org,
linux-kernel@...r.kernel.org, Abaci Robot <abaci@...ux.alibaba.com>
Subject: Re: [PATCH v2] iavf: Remove useless else if
On Wed, 24 May 2023 18:02:03 +0800 Jiapeng Chong wrote:
> The assignment of the else and if branches is the same, so the if else
> here is redundant, so we remove it.
>
> ./drivers/net/ethernet/intel/iavf/iavf_main.c:2203:6-8: WARNING: possible condition with no effect (if == else).
>
> Reported-by: Abaci Robot <abaci@...ux.alibaba.com>
> Closes: https://bugzilla.openanolis.cn/show_bug.cgi?id=5255
> Signed-off-by: Jiapeng Chong <jiapeng.chong@...ux.alibaba.com>
Looking thru git history most of the patches you send for this check
are converting perfectly valid code. Please change the check to ignore
if (cond)
/*A*/
else if (cond2)
/*B*/
else
/*B*/
--
pw-bot: reject
Powered by blists - more mailing lists