]> git.hungrycats.org Git - linux/commitdiff
[netdrvr 3c59x] move netif_carrier_off() call outside vortex_debug test
authorJay Vosburgh <fubar@us.ibm.com>
Thu, 13 Feb 2003 21:45:06 +0000 (16:45 -0500)
committerJeff Garzik <jgarzik@redhat.com>
Thu, 13 Feb 2003 21:45:06 +0000 (16:45 -0500)
drivers/net/3c59x.c

index f9d764b8a95f1ad2d2d442cc1366cf0104e9d2ac..6a3ae73f9afd8be990ab4c73b956c5137fa39ffc 100644 (file)
@@ -1772,10 +1772,12 @@ vortex_timer(unsigned long data)
                        if (vortex_debug > 1)
                                printk(KERN_DEBUG "%s: Media %s has link beat, %x.\n",
                                           dev->name, media_tbl[dev->if_port].name, media_status);
-               } else if (vortex_debug > 1) {
+               } else {
                        netif_carrier_off(dev);
-                       printk(KERN_DEBUG "%s: Media %s has no link beat, %x.\n",
-                                  dev->name, media_tbl[dev->if_port].name, media_status);
+                       if (vortex_debug > 1) {
+                               printk(KERN_DEBUG "%s: Media %s has no link beat, %x.\n",
+                                          dev->name, media_tbl[dev->if_port].name, media_status);
+                       }
                }
                break;
        case XCVR_MII: case XCVR_NWAY: