Thread (2 messages) flat view 2 messages, 2 authors, 2020-05-08

Re: [PATCH][next] net: phy: fix less than zero comparison with unsigned variable val

From: David Miller <davem@davemloft.net>
Date: 2020-05-08 01:08:01
Also in: kernel-janitors, lkml

From: Colin King <redacted>
Date: Thu,  7 May 2020 15:34:30 +0100
From: Colin Ian King <redacted>

The unsigned variable val is being checked for an error by checking
if it is less than zero. This can never occur because val is unsigned.
Fix this by making val a plain int.

Addresses-Coverity: ("Unsigned compared against zero")
Fixes: bdbdac7649fa ("ethtool: provide UAPI for PHY master/slave configuration.")
Signed-off-by: Colin Ian King <redacted>
Applied, thanks Colin.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help