summaryrefslogtreecommitdiffstats
path: root/drivers/net
diff options
context:
space:
mode:
authorDenis Cheng <crquan@gmail.com>2007-07-18 15:24:49 +0800
committerDavid S. Miller <davem@sunset.davemloft.net>2007-10-10 16:50:20 -0700
commitc54f5c240239fb8391a3b541f916764dd496f2e6 (patch)
tree400d701f6faa139bd8e7552159238bebf0aeba96 /drivers/net
parenteda105317fece79fa7e8478214ff7450f5a3f9dd (diff)
downloadop-kernel-dev-c54f5c240239fb8391a3b541f916764dd496f2e6.zip
op-kernel-dev-c54f5c240239fb8391a3b541f916764dd496f2e6.tar.gz
drivers/net/cxgb3: removed several unneeded zero initilization
Cc: linux-bugs@chelsio.com Signed-off-by: Denis Cheng <crquan@gmail.com> Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'drivers/net')
-rw-r--r--drivers/net/cxgb3/cxgb3_main.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/cxgb3/cxgb3_main.c b/drivers/net/cxgb3/cxgb3_main.c
index 5db7d4e..57fc199 100644
--- a/drivers/net/cxgb3/cxgb3_main.c
+++ b/drivers/net/cxgb3/cxgb3_main.c
@@ -793,7 +793,7 @@ release_tpsram:
*/
static int cxgb_up(struct adapter *adap)
{
- int err = 0;
+ int err;
int must_load;
if (!(adap->flags & FULL_INIT_DONE)) {
@@ -907,7 +907,7 @@ static int offload_open(struct net_device *dev)
struct adapter *adapter = pi->adapter;
struct t3cdev *tdev = dev2t3cdev(dev);
int adap_up = adapter->open_device_map & PORT_MASK;
- int err = 0;
+ int err;
if (test_and_set_bit(OFFLOAD_DEVMAP_BIT, &adapter->open_device_map))
return 0;
@@ -1566,7 +1566,7 @@ static int set_eeprom(struct net_device *dev, struct ethtool_eeprom *eeprom,
struct adapter *adapter = pi->adapter;
u32 aligned_offset, aligned_len, *p;
u8 *buf;
- int err = 0;
+ int err;
if (eeprom->magic != EEPROM_MAGIC)
return -EINVAL;
OpenPOWER on IntegriCloud