e6000sw_set_atustat: eliminate write only ret variable
Sponsored by: Netflix
This commit is contained in:
parent
3ca3bb576b
commit
9a2e6ca6ef
@ -1529,9 +1529,8 @@ e6000sw_setup(device_t dev, e6000sw_softc_t *sc)
|
||||
static void
|
||||
e6000sw_set_atustat(device_t dev, e6000sw_softc_t *sc, int bin, int flag)
|
||||
{
|
||||
uint16_t ret;
|
||||
|
||||
ret = e6000sw_readreg(sc, REG_GLOBAL2, ATU_STATS);
|
||||
e6000sw_readreg(sc, REG_GLOBAL2, ATU_STATS);
|
||||
e6000sw_writereg(sc, REG_GLOBAL2, ATU_STATS, (bin << ATU_STATS_BIN ) |
|
||||
(flag << ATU_STATS_FLAG));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user