]> git.baikalelectronics.ru Git - kernel.git/commit
net: phy: micrel: Fix incorrect variable type in micrel
authorWan Jiabing <wanjiabing@vivo.com>
Mon, 9 May 2022 14:45:19 +0000 (22:45 +0800)
committerJakub Kicinski <kuba@kernel.org>
Tue, 10 May 2022 22:18:13 +0000 (15:18 -0700)
commitba18d264f27cb301139cf84cbdbc31da22129351
treec3586e4ae81acfc3c922f6957fe7edf026f1c5a0
parentf7cbd2b2cbc4b36c42a29b7e726f66adfcc6ff95
net: phy: micrel: Fix incorrect variable type in micrel

In lanphy_read_page_reg, calling __phy_read() might return a negative
error code. Use 'int' to check the error code.

Fixes: 315001c86969 ("net: phy: micrel: Add support for LAN8804 PHY")
Signed-off-by: Wan Jiabing <wanjiabing@vivo.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Link: https://lore.kernel.org/r/20220509144519.2343399-1-wanjiabing@vivo.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/phy/micrel.c