be2net: fix to allow port beacon when device is closed
authorAjit Khaparde <ajitk@serverengines.com>
Sun, 29 Nov 2009 17:56:56 +0000 (17:56 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 2 Dec 2009 08:50:25 +0000 (00:50 -0800)
port identification/beaconing is failing if device open has not been done.
Fixing it.

Signed-off-by: Ajit Khaparde <ajitk@serverengines.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/benet/be_ethtool.c

index e8f92831021a55f268deffeb16fb18468a91df16..9eabed4e3b92dc58640b9d513f4add100c1ab405 100644 (file)
@@ -380,9 +380,6 @@ be_phys_id(struct net_device *netdev, u32 data)
        int status;
        u32 cur;
 
-       if (!netif_running(netdev))
-               return 0;
-
        be_cmd_get_beacon_state(adapter, adapter->port_num, &cur);
 
        if (cur == BEACON_STATE_ENABLED)