Skip to content

Commit

Permalink
drivers/net/cxgb3: removed several unneeded zero initilization
Browse files Browse the repository at this point in the history
Cc: linux-bugs@chelsio.com
Signed-off-by: Denis Cheng <crquan@gmail.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
  • Loading branch information
Denis Cheng authored and David S. Miller committed Oct 10, 2007
1 parent eda1053 commit c54f5c2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions drivers/net/cxgb3/cxgb3_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -793,7 +793,7 @@ int update_tpsram(struct adapter *adap)
*/
static int cxgb_up(struct adapter *adap)
{
int err = 0;
int err;
int must_load;

if (!(adap->flags & FULL_INIT_DONE)) {
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit c54f5c2

Please sign in to comment.