aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ar71xx/files/drivers
diff options
context:
space:
mode:
authorAlexander Couzens <lynxis@fe80.eu>2017-06-11 12:51:58 +0200
committerAlexander Couzens <lynxis@fe80.eu>2017-06-11 14:22:44 +0200
commit10259416628da6f8098ec77be1b59c8f8951c8c4 (patch)
tree5fcab0f65e927ffcb582dff083f1284166a85968 /target/linux/ar71xx/files/drivers
parent64cd4b48e8fb51055a24382564a09877d6d6a08c (diff)
downloadupstream-10259416628da6f8098ec77be1b59c8f8951c8c4.tar.gz
upstream-10259416628da6f8098ec77be1b59c8f8951c8c4.tar.bz2
upstream-10259416628da6f8098ec77be1b59c8f8951c8c4.zip
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>
Diffstat (limited to 'target/linux/ar71xx/files/drivers')
-rw-r--r--target/linux/ar71xx/files/drivers/net/ethernet/atheros/ag71xx/ag71xx_ethtool.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/target/linux/ar71xx/files/drivers/net/ethernet/atheros/ag71xx/ag71xx_ethtool.c b/target/linux/ar71xx/files/drivers/net/ethernet/atheros/ag71xx/ag71xx_ethtool.c
index dfcbb54e93..f0e102152f 100644
--- a/target/linux/ar71xx/files/drivers/net/ethernet/atheros/ag71xx/ag71xx_ethtool.c
+++ b/target/linux/ar71xx/files/drivers/net/ethernet/atheros/ag71xx/ag71xx_ethtool.c
@@ -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 ||