Messages in this thread | | | Date | Mon, 12 Sep 2022 15:01:21 -0700 | Subject | Re: [PATCH] iavf: Remove useless else if | From | Tony Nguyen <> |
| |
On 9/8/2022 8:32 PM, Jiapeng Chong wrote: > The assignment of the else and else if branches is the same, so the else > if here is redundant, so we remove it and add a comment to make the code > here readable. > > ./drivers/net/ethernet/intel/iavf/iavf_main.c:2211:6-8: WARNING: possible condition with no effect (if == else).
This was already nacked by Jakub [1].
Thanks, Tony
> Link: https://bugzilla.openanolis.cn/show_bug.cgi?id=2106 > Reported-by: Abaci Robot <abaci@linux.alibaba.com> > Signed-off-by: Jiapeng Chong <jiapeng.chong@linux.alibaba.com>
[1] https://lore.kernel.org/netdev/20220801091355.6ca23bcf@kernel.org/
| |