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)
commit8c5385cbb0361dd6538b5b422996c3f1e1c6989d
treeba4e9ca0a2cac27664f22de77977200a5a3b97bc
parente6fbd47add0d13189bacb1881fe006db5027536e
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