]> git.baikalelectronics.ru Git - kernel.git/commit
net: phy: Fix unsigned comparison with less than zero
authorJiapeng Chong <jiapeng.chong@linux.alibaba.com>
Wed, 27 Oct 2021 08:59:51 +0000 (16:59 +0800)
committerJakub Kicinski <kuba@kernel.org>
Thu, 28 Oct 2021 01:26:14 +0000 (18:26 -0700)
commitdd4859f9031b53c56426a8f56273e67ef4276931
treea5f80ffeb602d0ec30467cab26a8b0905da64d3c
parent22011f7642d6b65ce6be98be2f671e34d5b1f473
net: phy: Fix unsigned comparison with less than zero

Fix the following coccicheck warning:

./drivers/net/phy/at803x.c:493:5-10: WARNING: Unsigned expression
compared with zero: value < 0.

Reported-by: Abaci Robot <abaci@linux.alibaba.com>
Fixes: 570aadd9dead ("net: phy: at803x: improve the WOL feature")
Signed-off-by: Jiapeng Chong <jiapeng.chong@linux.alibaba.com>
Reviewed-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Link: https://lore.kernel.org/r/1635325191-101815-1-git-send-email-jiapeng.chong@linux.alibaba.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/phy/at803x.c