Re: [PATCH][next] net: phy: realtek: net: Fix less than zero comparison of a u16

From: patchwork-bot+netdevbpf
Date: Wed Jun 09 2021 - 18:40:42 EST


Hello:

This patch was applied to netdev/net-next.git (refs/heads/master):

On Wed, 9 Jun 2021 18:17:48 +0100 you wrote:
> From: Colin Ian King <colin.king@xxxxxxxxxxxxx>
>
> The comparisons of the u16 values priv->phycr1 and priv->phycr2 to less
> than zero always false because they are unsigned. Fix this by using an
> int for the assignment and less than zero check.
>
> Addresses-Coverity: ("Unsigned compared against 0")
> Fixes: 0a4355c2b7f8 ("net: phy: realtek: add dt property to disable CLKOUT clock")
> Fixes: d90db36a9e74 ("net: phy: realtek: add dt property to enable ALDPS mode")
> Signed-off-by: Colin Ian King <colin.king@xxxxxxxxxxxxx>
>
> [...]

Here is the summary with links:
- [next] net: phy: realtek: net: Fix less than zero comparison of a u16
https://git.kernel.org/netdev/net-next/c/f25247d88708

You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html