]> git.baikalelectronics.ru Git - kernel.git/commit
net: ethernet: stmmac: Clean up dead code
authorChristos Gkekas <chris.gekas@gmail.com>
Sun, 8 Oct 2017 19:13:49 +0000 (20:13 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 9 Oct 2017 04:19:07 +0000 (21:19 -0700)
commit91d95f4c000ed299bf7b467f0087c5e487f0b697
tree238d7566f1912f1d2666c11e820c5d5fa185e95d
parentc805d5fa22f934aa86a839534cacc0cb04fc045e
net: ethernet: stmmac: Clean up dead code

Many macros in dwmac-ipq806x are unused and should be removed.
Moreover gmac->id is an unsigned variable and therefore checking
whether it is less than zero is redundant.

Signed-off-by: Christos Gkekas <chris.gekas@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/stmicro/stmmac/dwmac-ipq806x.c