]> git.baikalelectronics.ru Git - kernel.git/commit
amd-xgbe: Fix up some coccinelle identified warnings
authorLendacky, Thomas <Thomas.Lendacky@amd.com>
Mon, 14 Nov 2016 22:39:16 +0000 (16:39 -0600)
committerDavid S. Miller <davem@davemloft.net>
Wed, 16 Nov 2016 03:12:57 +0000 (22:12 -0500)
commitfecf796509463c4d6019e27bedd3c4f4d3ad6c24
treeba4e9ca0a2cac27664f22de77977200a5a3b97bc
parent3b7f77e995c00acca3235f358fdb677a9c07e3ae
amd-xgbe: Fix up some coccinelle identified warnings

Fix up some warnings that were identified by coccinelle:

Clean up an if/else block that can look confusing since the same statement
is executed in an "else if" check and the final "else" statement.

Change a variable from unsigned int to int since it is used in an if
statement checking the value to be less than 0.

Reported-by: Julia Lawall <julia.lawall@lip6.fr>
Signed-off-by: Tom Lendacky <thomas.lendacky@amd.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c