diff options
author | Dmitry Kravkov <dmitry@broadcom.com> | 2013-04-21 23:48:08 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-04-22 15:34:40 -0400 |
commit | f1691dc6159489e8928300cf674fb859f5b5dd12 (patch) | |
tree | 9f0cd4916f9804c2b368f9588035ddada1d31fe4 | |
parent | 30c20b67abf42b79b204820cc610caf368670feb (diff) |
bnx2x: remove non-necessary assignment
CC: Francious Romieu <romieu@fz.zoreil.com>
Signed-off-by: Dmitry Kravkov <dmitry@broadcom.com>
Signed-off-by: Eilon Greenstein <eilong@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | drivers/net/ethernet/broadcom/bnx2x/bnx2x_ethtool.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/net/ethernet/broadcom/bnx2x/bnx2x_ethtool.c b/drivers/net/ethernet/broadcom/bnx2x/bnx2x_ethtool.c index 8ae51f991440..8d5c21e98ef4 100644 --- a/drivers/net/ethernet/broadcom/bnx2x/bnx2x_ethtool.c +++ b/drivers/net/ethernet/broadcom/bnx2x/bnx2x_ethtool.c | |||
@@ -1385,7 +1385,6 @@ static int bnx2x_get_eeprom(struct net_device *dev, | |||
1385 | struct ethtool_eeprom *eeprom, u8 *eebuf) | 1385 | struct ethtool_eeprom *eeprom, u8 *eebuf) |
1386 | { | 1386 | { |
1387 | struct bnx2x *bp = netdev_priv(dev); | 1387 | struct bnx2x *bp = netdev_priv(dev); |
1388 | int rc; | ||
1389 | 1388 | ||
1390 | if (!netif_running(dev)) { | 1389 | if (!netif_running(dev)) { |
1391 | DP(BNX2X_MSG_ETHTOOL | BNX2X_MSG_NVM, | 1390 | DP(BNX2X_MSG_ETHTOOL | BNX2X_MSG_NVM, |
@@ -1400,9 +1399,7 @@ static int bnx2x_get_eeprom(struct net_device *dev, | |||
1400 | 1399 | ||
1401 | /* parameters already validated in ethtool_get_eeprom */ | 1400 | /* parameters already validated in ethtool_get_eeprom */ |
1402 | 1401 | ||
1403 | rc = bnx2x_nvram_read(bp, eeprom->offset, eebuf, eeprom->len); | 1402 | return bnx2x_nvram_read(bp, eeprom->offset, eebuf, eeprom->len); |
1404 | |||
1405 | return rc; | ||
1406 | } | 1403 | } |
1407 | 1404 | ||
1408 | static int bnx2x_get_module_eeprom(struct net_device *dev, | 1405 | static int bnx2x_get_module_eeprom(struct net_device *dev, |