ar71xx/ag71xx_ethtool: don't return uninitialized return value on success
ag71xx_ethtool_set_ringparam() will return an uninitialized value on success. Found-by: Coverity Scan #1330877 Signed-off-by: Alexander Couzens <lynxis@fe80.eu>
This commit is contained in:
parent
64cd4b48e8
commit
1025941662
1 changed files with 1 additions and 1 deletions
|
@ -86,7 +86,7 @@ static int ag71xx_ethtool_set_ringparam(struct net_device *dev,
|
|||
struct ag71xx *ag = netdev_priv(dev);
|
||||
unsigned tx_size;
|
||||
unsigned rx_size;
|
||||
int err;
|
||||
int err = 0;
|
||||
|
||||
if (er->rx_mini_pending != 0||
|
||||
er->rx_jumbo_pending != 0 ||
|
||||
|
|
Loading…
Reference in a new issue