diff options
author | Andrew Lunn <andrew@lunn.ch> | 2020-07-07 03:49:33 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-07-07 12:47:10 -0700 |
commit | 3f2edd309ff02c973bc3cb815c87def07a1ac804 (patch) | |
tree | 3908ae82700cb13a260e358e8a21c2dd42f6f94c /drivers/net/xen-netback | |
parent | 5411ca7178d40d94e009f3a00f10e20e6067037c (diff) |
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/xen-netback')
0 files changed, 0 insertions, 0 deletions