net: macb: do not set again bit 0 of queue_mask
Bit 0 of queue_mask is set at the beginning of macb_probe_queues() function. Do not set it again after reading DGFG6 but instead use "|=" operator. Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
9eb6206d13
commit
fec371f624
|
@ -3497,9 +3497,7 @@ static void macb_probe_queues(void __iomem *mem,
|
|||
return;
|
||||
|
||||
/* bit 0 is never set but queue 0 always exists */
|
||||
*queue_mask = readl_relaxed(mem + GEM_DCFG6) & 0xff;
|
||||
|
||||
*queue_mask |= 0x1;
|
||||
*queue_mask |= readl_relaxed(mem + GEM_DCFG6) & 0xff;
|
||||
|
||||
for (hw_q = 1; hw_q < MACB_MAX_QUEUES; ++hw_q)
|
||||
if (*queue_mask & (1 << hw_q))
|
||||
|
|
Loading…
Reference in New Issue