]> git.baikalelectronics.ru Git - kernel.git/commit
net: lan966x: Fix duplicate check in frame extraction
authorHoratiu Vultur <horatiu.vultur@microchip.com>
Wed, 1 Dec 2021 14:53:51 +0000 (15:53 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 2 Dec 2021 12:17:28 +0000 (12:17 +0000)
commita8555618598581133c43bac230c3260f61039f0b
tree11d6d853c2b70d7e7808fea9e6fea90d3ae125b8
parentae1086952156aa579693ed3c6672f8745beb6c3e
net: lan966x: Fix duplicate check in frame extraction

The blamed commit generates the following smatch static checker warning:

 drivers/net/ethernet/microchip/lan966x/lan966x_main.c:515 lan966x_xtr_irq_handler()
         warn: duplicate check 'sz < 0' (previous on line 502)

This patch fixes this issue removing the duplicate check 'sz < 0'

Fixes: bb48b7a2878d28 ("net: lan966x: add port module support")
Signed-off-by: Horatiu Vultur <horatiu.vultur@microchip.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/microchip/lan966x/lan966x_main.c