patch-2.1.93 linux/net/core/dev.c
Next file: linux/net/ipv4/af_inet.c
Previous file: linux/mm/page_alloc.c
Back to the patch index
Back to the overall index
- Lines: 12
- Date:
Fri Apr 3 17:48:11 1998
- Orig file:
v2.1.92/linux/net/core/dev.c
- Orig date:
Tue Mar 17 22:18:16 1998
diff -u --recursive --new-file v2.1.92/linux/net/core/dev.c linux/net/core/dev.c
@@ -1342,10 +1342,7 @@
ret = 0;
if ((old_flags^flags)&IFF_UP) /* Bit is different ? */
{
- if(old_flags&IFF_UP) /* Gone down */
- ret=dev_close(dev);
- else /* Come up */
- ret=dev_open(dev);
+ ret = ((old_flags & IFF_UP) ? dev_close : dev_open)(dev);
if (ret == 0)
dev_mc_upload(dev);
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov