Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 68869
b: refs/heads/master
c: 82d1ce5
h: refs/heads/master
i:
  68867: c903e9d
v: v3
  • Loading branch information
Mariusz Kozlowski authored and James Bottomley committed Oct 12, 2007
1 parent 3ea1b38 commit e7803f9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 568761955ad01c6d238d8b12d21a554c1226a37b
refs/heads/master: 82d1ce505d1a77a03acb9d22240ef5a63a18b653
8 changes: 3 additions & 5 deletions trunk/drivers/message/fusion/mptlan.c
Original file line number Diff line number Diff line change
Expand Up @@ -1345,10 +1345,11 @@ mpt_lan_post_receive_buckets_work(struct work_struct *work)
static struct net_device *
mpt_register_lan_device (MPT_ADAPTER *mpt_dev, int pnum)
{
struct net_device *dev = alloc_fcdev(sizeof(struct mpt_lan_priv));
struct mpt_lan_priv *priv = NULL;
struct net_device *dev;
struct mpt_lan_priv *priv;
u8 HWaddr[FC_ALEN], *a;

dev = alloc_fcdev(sizeof(struct mpt_lan_priv));
if (!dev)
return NULL;

Expand All @@ -1360,7 +1361,6 @@ mpt_register_lan_device (MPT_ADAPTER *mpt_dev, int pnum)
priv->mpt_dev = mpt_dev;
priv->pnum = pnum;

memset(&priv->post_buckets_task, 0, sizeof(priv->post_buckets_task));
INIT_DELAYED_WORK(&priv->post_buckets_task,
mpt_lan_post_receive_buckets_work);
priv->post_buckets_active = 0;
Expand All @@ -1385,8 +1385,6 @@ mpt_register_lan_device (MPT_ADAPTER *mpt_dev, int pnum)
spin_lock_init(&priv->txfidx_lock);
spin_lock_init(&priv->rxfidx_lock);

memset(&priv->stats, 0, sizeof(priv->stats));

/* Grab pre-fetched LANPage1 stuff. :-) */
a = (u8 *) &mpt_dev->lan_cnfg_page1.HardwareAddressLow;

Expand Down

0 comments on commit e7803f9

Please sign in to comment.