net: dsa: rtl8366: Pass GENMASK() signed bits
authorAndrew Lunn <andrew@lunn.ch>
Sun, 5 Jul 2020 20:42:27 +0000 (22:42 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sun, 5 Jul 2020 22:47:28 +0000 (15:47 -0700)
commitda31735cb9db61dccea0bc9eeb581b41106a247a
treef1063e191c20598f7eb9531ef22fb074d1a20c09
parent74dc1d46ee52037b10b7e55a993764baa93f2f18
net: dsa: rtl8366: Pass GENMASK() signed bits

Oddly, GENMASK() requires signed bit numbers, so that it can compare
them for < 0. If passed an unsigned type, we get warnings about the
test never being true.

Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/rtl8366.c