Re: [PATCH net] net: netsec: Fix signedness bug in netsec_probe()

2019-09-27 Thread David Miller
From: Dan Carpenter Date: Wed, 25 Sep 2019 13:56:38 +0300 > The "priv->phy_interface" variable is an enum and in this context GCC > will treat it as an unsigned int so the error handling is never > triggered. > > Fixes: 533dd11a12f6 ("net: socionext: Add Synquacer NetSec driver") > Signed-off-by

[PATCH net] net: netsec: Fix signedness bug in netsec_probe()

2019-09-25 Thread Dan Carpenter
The "priv->phy_interface" variable is an enum and in this context GCC will treat it as an unsigned int so the error handling is never triggered. Fixes: 533dd11a12f6 ("net: socionext: Add Synquacer NetSec driver") Signed-off-by: Dan Carpenter --- drivers/net/ethernet/socionext/netsec.c | 2 +- 1