aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/phy/mdio_device.c
diff options
context:
space:
mode:
authorAndrew Lunn <andrew@lunn.ch>2020-07-07 03:49:33 +0200
committerDavid S. Miller <davem@davemloft.net>2020-07-07 12:47:10 -0700
commit3f2edd309ff02c973bc3cb815c87def07a1ac804 (patch)
tree3908ae82700cb13a260e358e8a21c2dd42f6f94c /drivers/net/phy/mdio_device.c
parentnet: sfp: Unique GPIO interrupt names (diff)
downloadlinux-dev-3f2edd309ff02c973bc3cb815c87def07a1ac804.tar.xz
linux-dev-3f2edd309ff02c973bc3cb815c87def07a1ac804.zip
net: phy: at803x: Avoid comparison is always false warning
By placing the GENMASK value into an unsigned int and then passing it to PREF_FIELD, the type is reduces down from ULL. Given the reduced size of the type, the range checks in PREP_FAIL() are always true, and -Wtype-limits then gives a warning. By skipping the intermediate variable, the warning can be avoided. Reviewed-by: Jakub Kicinski <kuba@kernel.org> Signed-off-by: Andrew Lunn <andrew@lunn.ch> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/phy/mdio_device.c')
0 files changed, 0 insertions, 0 deletions