net: phy: remove unneeded masking of PHY register read results
authorHeiner Kallweit <hkallweit1@gmail.com>
Sat, 9 Feb 2019 08:46:53 +0000 (09:46 +0100)
committerDavid S. Miller <davem@davemloft.net>
Sat, 9 Feb 2019 17:29:33 +0000 (09:29 -0800)
commit50684da7427b3c36ce0ccf89814df28d9dbe3fe4
treedc00955cb8cc1e641c5c8e9487d86a74e1b60114
parent8497ded2d16caabad1d9be7e7ec9b085e48ddfe4
net: phy: remove unneeded masking of PHY register read results

PHY registers are only 16 bits wide, therefore, if the read was
successful, there's no need to mask out the higher 16 bits.

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/phy_device.c