提交 c54f5c24 编写于 作者: D Denis Cheng 提交者: David S. Miller

drivers/net/cxgb3: removed several unneeded zero initilization

Cc: linux-bugs@chelsio.com
Signed-off-by: NDenis Cheng <crquan@gmail.com>
Signed-off-by: NJeff Garzik <jeff@garzik.org>
上级 eda10531
...@@ -793,7 +793,7 @@ int update_tpsram(struct adapter *adap) ...@@ -793,7 +793,7 @@ int update_tpsram(struct adapter *adap)
*/ */
static int cxgb_up(struct adapter *adap) static int cxgb_up(struct adapter *adap)
{ {
int err = 0; int err;
int must_load; int must_load;
if (!(adap->flags & FULL_INIT_DONE)) { if (!(adap->flags & FULL_INIT_DONE)) {
...@@ -907,7 +907,7 @@ static int offload_open(struct net_device *dev) ...@@ -907,7 +907,7 @@ static int offload_open(struct net_device *dev)
struct adapter *adapter = pi->adapter; struct adapter *adapter = pi->adapter;
struct t3cdev *tdev = dev2t3cdev(dev); struct t3cdev *tdev = dev2t3cdev(dev);
int adap_up = adapter->open_device_map & PORT_MASK; 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)) if (test_and_set_bit(OFFLOAD_DEVMAP_BIT, &adapter->open_device_map))
return 0; return 0;
...@@ -1566,7 +1566,7 @@ static int set_eeprom(struct net_device *dev, struct ethtool_eeprom *eeprom, ...@@ -1566,7 +1566,7 @@ static int set_eeprom(struct net_device *dev, struct ethtool_eeprom *eeprom,
struct adapter *adapter = pi->adapter; struct adapter *adapter = pi->adapter;
u32 aligned_offset, aligned_len, *p; u32 aligned_offset, aligned_len, *p;
u8 *buf; u8 *buf;
int err = 0; int err;
if (eeprom->magic != EEPROM_MAGIC) if (eeprom->magic != EEPROM_MAGIC)
return -EINVAL; return -EINVAL;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册