net: amd8111e: remove redundant duplicated if statement
authorColin Ian King <colin.king@canonical.com>
Wed, 25 Apr 2018 10:31:13 +0000 (11:31 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 25 Apr 2018 18:11:27 +0000 (14:11 -0400)
commit4d7b44833e9a129d3220152727a19cceea3a2ac4
treeeba0269006e7403c228bfa29c9a9e869a8e19ddc
parent22e15b6f9c010ffded63e6c9720a656eb3d73835
net: amd8111e: remove redundant duplicated if statement

There are two identical nested if statements, the second is redundant
and can be removed. Also clean up white space formatting.

Cleans up cppcheck warning:
drivers/net/ethernet/amd/amd8111e.c:1080: (warning) Identical inner 'if'
condition is always true.

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/amd/amd8111e.c