diff options
author | Paul Mackerras <paulus@samba.org> | 2005-09-25 08:51:50 -0400 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2005-09-25 08:51:50 -0400 |
commit | e5baa396af7560382d2cf3f0871d616b61fc284c (patch) | |
tree | 6afc166894b8c8b3b2cf6add72a726be14ae2443 /drivers/message/fusion/mptlan.c | |
parent | d6a4c847e43c851cc0ddf73087a730227223f989 (diff) | |
parent | ef6bd6eb90ad72ee8ee7ba8b271f27102e9a90c1 (diff) |
Merge from Linus' tree.
Diffstat (limited to 'drivers/message/fusion/mptlan.c')
-rw-r--r-- | drivers/message/fusion/mptlan.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/drivers/message/fusion/mptlan.c b/drivers/message/fusion/mptlan.c index 52794be5a95c..ed3c891e388f 100644 --- a/drivers/message/fusion/mptlan.c +++ b/drivers/message/fusion/mptlan.c | |||
@@ -312,7 +312,12 @@ static int | |||
312 | mpt_lan_ioc_reset(MPT_ADAPTER *ioc, int reset_phase) | 312 | mpt_lan_ioc_reset(MPT_ADAPTER *ioc, int reset_phase) |
313 | { | 313 | { |
314 | struct net_device *dev = ioc->netdev; | 314 | struct net_device *dev = ioc->netdev; |
315 | struct mpt_lan_priv *priv = netdev_priv(dev); | 315 | struct mpt_lan_priv *priv; |
316 | |||
317 | if (dev == NULL) | ||
318 | return(1); | ||
319 | else | ||
320 | priv = netdev_priv(dev); | ||
316 | 321 | ||
317 | dlprintk((KERN_INFO MYNAM ": IOC %s_reset routed to LAN driver!\n", | 322 | dlprintk((KERN_INFO MYNAM ": IOC %s_reset routed to LAN driver!\n", |
318 | reset_phase==MPT_IOC_SETUP_RESET ? "setup" : ( | 323 | reset_phase==MPT_IOC_SETUP_RESET ? "setup" : ( |