Skip to content

Commit bb6c616

Browse files
committed
net: phy: as21xx: fix unsigned int is never less than zero
drivers/net/phy/as21xxx.c:549 aeon_ipc_send_cmd() warn: unsigned 'val' is never less than zero. drivers/net/phy/as21xxx.c:557 aeon_ipc_send_cmd() warn: unsigned 'val' is never less than zero. Reported-by: kernel test robot <[email protected]> Reported-by: Dan Carpenter <[email protected]> Closes: https://lore.kernel.org/r/[email protected]/
1 parent 2c54e33 commit bb6c616

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/phy/as21xxx.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -516,7 +516,7 @@ static int aeon_ipc_send_cmd(struct phy_device *phydev,
516516
{
517517
bool curr_parity;
518518
int ret;
519-
unsigned int val;
519+
int val;
520520

521521
/* The IPC sync by using a single parity bit.
522522
* Each CMD have alternately this bit set or clear

0 commit comments

Comments
 (0)