[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <cbb5132b022cd5e954c0fb5aa285dd0a@walle.cc>
Date: Thu, 23 Apr 2020 16:48:05 +0200
From: Michael Walle <michael@...le.cc>
To: Colin King <colin.king@...onical.com>
Cc: Andrew Lunn <andrew@...n.ch>,
Florian Fainelli <f.fainelli@...il.com>,
Heiner Kallweit <hkallweit1@...il.com>,
Russell King <linux@...linux.org.uk>,
"David S . Miller" <davem@...emloft.net>,
Guenter Roeck <linux@...ck-us.net>, netdev@...r.kernel.org,
kernel-janitors@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH][next] net: phy: bcm54140: fix less than zero comparison
on an unsigned
Am 2020-04-23 16:10, schrieb Colin King:
> From: Colin Ian King <colin.king@...onical.com>
>
> Currently the unsigned variable tmp is being checked for an negative
> error return from the call to bcm_phy_read_rdb and this can never
> be true since tmp is unsigned. Fix this by making tmp a plain int.
>
> Addresses-Coverity: ("Unsigned compared against 0")
> Fixes: 4406d36dfdf1 ("net: phy: bcm54140: add hwmon support")
> Signed-off-by: Colin Ian King <colin.king@...onical.com>
FWIW since Andrew already reviewed it:
Reviewed-by: Michael Walle <michael@...le.cc>
-michael
Powered by blists - more mailing lists