]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: legacy: don't unmask port bitmaps
authorVivien Didelot <vivien.didelot@savoirfairelinux.com>
Mon, 23 Oct 2017 18:17:30 +0000 (14:17 -0400)
committerDavid S. Miller <davem@davemloft.net>
Thu, 26 Oct 2017 08:05:04 +0000 (17:05 +0900)
commitd687e6d39fcd31eac269190beeae7b39ef1d5474
tree1a9fd7deded520e81ad2caa4d1f51442468906c8
parent4d265fe7bc00e84e8cd431cd8e868e256f2f3f78
net: dsa: legacy: don't unmask port bitmaps

The legacy code does not unmask the cpu_port_mask and dsa_port_mask as
stated. But this is done on the error path and those masks won't be used
after that. So instead of fixing the bit operation, simply remove it.

Fixes: e292a926e6fa ("net: dsa: Add new binding implementation")
Signed-off-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/dsa/legacy.c