Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

tlan: Don't scream if no link

Remove excess printks when the link is down.

Signed-off-by: Ondrej Zary <linux@rainbow-software.org>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Ondrej Zary and committed by
David S. Miller
8e62d670 36bbe2f4

-10
-9
drivers/net/ethernet/ti/tlan.c
··· 1198 1198 1199 1199 static int tlan_close(struct net_device *dev) 1200 1200 { 1201 - struct tlan_priv *priv = netdev_priv(dev); 1202 - 1203 - priv->neg_be_verbose = 0; 1204 1201 tlan_stop(dev); 1205 1202 1206 1203 free_irq(dev->irq, dev); ··· 2698 2701 /* Wait for 8 sec to give the process 2699 2702 * more time. Perhaps we should fail after a while. 2700 2703 */ 2701 - if (!priv->neg_be_verbose++) { 2702 - pr_info("Giving autonegotiation more time.\n"); 2703 - pr_info("Please check that your adapter has\n"); 2704 - pr_info("been properly connected to a HUB or Switch.\n"); 2705 - pr_info("Trying to establish link in the background...\n"); 2706 - } 2707 2704 tlan_set_timer(dev, (8*HZ), TLAN_TIMER_PHY_FINISH_AN); 2708 2705 return; 2709 2706 }
-1
drivers/net/ethernet/ti/tlan.h
··· 208 208 u8 tlan_full_duplex; 209 209 spinlock_t lock; 210 210 struct work_struct tlan_tqueue; 211 - u8 neg_be_verbose; 212 211 }; 213 212 214 213