]> git.baikalelectronics.ru Git - kernel.git/commit
icplus: Use netif_running to determine device state
authorJon Mason <jdmason@kudzu.us>
Wed, 4 Sep 2013 18:26:01 +0000 (11:26 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 5 Sep 2013 18:27:32 +0000 (14:27 -0400)
commite61c60662ad51503179fe85c534ebe052826a731
tree955540319fa2b50a809103a84523aaf855e77128
parent31c40cbab2eaf1a9a9abdeedd2fb1713a4d900c8
icplus: Use netif_running to determine device state

Remove the __LINK_STATE_START check to verify the device is running, in
favor of netif_running().  netif_running() performs the same check of
__LINK_STATE_START, so the code should behave the same.

Signed-off-by: Jon Mason <jdmason@kudzu.us>
Cc: Francois Romieu <romieu@fr.zoreil.com>
Cc: Sorbica Shieh <sorbica@icplus.com.tw>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/icplus/ipg.c