patch-2.3.47 linux/drivers/isdn/isdn_net.c
Next file: linux/drivers/net/3c505.c
Previous file: linux/drivers/ieee1394/raw1394.c
Back to the patch index
Back to the overall index
- Lines: 18
- Date:
Thu Feb 17 09:18:47 2000
- Orig file:
v2.3.46/linux/drivers/isdn/isdn_net.c
- Orig date:
Wed Feb 16 17:03:52 2000
diff -u --recursive --new-file v2.3.46/linux/drivers/isdn/isdn_net.c linux/drivers/isdn/isdn_net.c
@@ -483,7 +483,7 @@
* Instead I chose to add isdn_net_started() which gives the state of the
* master in case of slaves.
* I'm still not sure if this is how it's supposed to be done this way
- * because it uses test_bit(LINK_STATE_START, &dev->state) which might be
+ * because it uses netif_running(dev) which might be
* considered private to the network layer. However, it works for now.
* Alternative: set a flag in _open() and clear it in _close()
*
@@ -506,7 +506,7 @@
dev = lp->master;
else
dev = &n->dev;
- return test_bit(LINK_STATE_START, &dev->state);
+ return netif_running(dev);
}
/*
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)