Re: [PATCH] iavf: Remove useless else if

From: Tony Nguyen
Date: Mon Sep 12 2022 - 18:01:40 EST


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@xxxxxxxxxxxxxxxxx>
Signed-off-by: Jiapeng Chong <jiapeng.chong@xxxxxxxxxxxxxxxxx>

[1] https://lore.kernel.org/netdev/20220801091355.6ca23bcf@xxxxxxxxxx/