net: phy: dp83867: Fix a never true comparison
authorHaolin Li <li.haolin@qq.com>
Sat, 19 Mar 2022 14:02:42 +0000 (07:02 -0700)
committerRamon Fried <ramon@neureality.ai>
Sun, 10 Apr 2022 05:44:12 +0000 (08:44 +0300)
commite2b6cf5cadc0b71f4addbe0019f7da0c8578c194
treee862afffeac1f692ea0a6a9e3d1179b4609533fc
parent5faf161d07099d25fcb67f203c5576f258a11fbf
net: phy: dp83867: Fix a never true comparison

The type of the return value of phy_read() and phy_read_mmd() is int.
Change the variable to not be unsigned so that we not get into an
unsigned compared against 0.

Signed-off-by: Haolin Li <li.haolin@qq.com>
Reviewed-by: Ramon Fried <rfried.dev@gmail.com>
drivers/net/phy/dp83867.c