Skip to content

Commit

Permalink
tlan: Don't scream if no link
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Ondrej Zary authored and David S. Miller committed Jul 8, 2014
1 parent 36bbe2f commit 8e62d67
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 10 deletions.
9 changes: 0 additions & 9 deletions drivers/net/ethernet/ti/tlan.c
Original file line number Diff line number Diff line change
Expand Up @@ -1198,9 +1198,6 @@ static irqreturn_t tlan_handle_interrupt(int irq, void *dev_id)

static int tlan_close(struct net_device *dev)
{
struct tlan_priv *priv = netdev_priv(dev);

priv->neg_be_verbose = 0;
tlan_stop(dev);

free_irq(dev->irq, dev);
Expand Down Expand Up @@ -2701,12 +2698,6 @@ static void tlan_phy_finish_auto_neg(struct net_device *dev)
/* Wait for 8 sec to give the process
* more time. Perhaps we should fail after a while.
*/
if (!priv->neg_be_verbose++) {
pr_info("Giving autonegotiation more time.\n");
pr_info("Please check that your adapter has\n");
pr_info("been properly connected to a HUB or Switch.\n");
pr_info("Trying to establish link in the background...\n");
}
tlan_set_timer(dev, (8*HZ), TLAN_TIMER_PHY_FINISH_AN);
return;
}
Expand Down
1 change: 0 additions & 1 deletion drivers/net/ethernet/ti/tlan.h
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,6 @@ struct tlan_priv {
u8 tlan_full_duplex;
spinlock_t lock;
struct work_struct tlan_tqueue;
u8 neg_be_verbose;
};


Expand Down

0 comments on commit 8e62d67

Please sign in to comment.