Commit 1da847b9 authored by Zhu Yanjun's avatar Zhu Yanjun Committed by David S. Miller

forcedeth: remove unused variable

The variable miistat is not used. So it is removed.

CC: Srinivas Eeda <srinivas.eeda@oracle.com>
CC: Joe Jin <joe.jin@oracle.com>
CC: Junxiao Bi <junxiao.bi@oracle.com>
Signed-off-by: default avatarZhu Yanjun <yanjun.zhu@oracle.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 5a75114a
...@@ -5510,11 +5510,9 @@ static int nv_open(struct net_device *dev) ...@@ -5510,11 +5510,9 @@ static int nv_open(struct net_device *dev)
/* One manual link speed update: Interrupts are enabled, future link /* One manual link speed update: Interrupts are enabled, future link
* speed changes cause interrupts and are handled by nv_link_irq(). * speed changes cause interrupts and are handled by nv_link_irq().
*/ */
{ readl(base + NvRegMIIStatus);
u32 miistat; writel(NVREG_MIISTAT_MASK_ALL, base + NvRegMIIStatus);
miistat = readl(base + NvRegMIIStatus);
writel(NVREG_MIISTAT_MASK_ALL, base + NvRegMIIStatus);
}
/* set linkspeed to invalid value, thus force nv_update_linkspeed /* set linkspeed to invalid value, thus force nv_update_linkspeed
* to init hw */ * to init hw */
np->linkspeed = 0; np->linkspeed = 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment