]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: ksz: Remove dead code and fix warnings
authorMarek Vasut <marex@denx.de>
Tue, 6 Aug 2019 13:06:07 +0000 (15:06 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 6 Aug 2019 18:59:17 +0000 (11:59 -0700)
commit0d1f1bd5b924f34eb94eacde1cc34bb23941ad2b
treed519f4b21ac72a35e25db900199ded975d991e04
parent6785859511bea28a25da5587e45830383521ae9a
net: dsa: ksz: Remove dead code and fix warnings

Remove ksz_port_cleanup(), which is unused. Add missing include
"ksz_common.h", which fixes the following warning when built with
make ... W=1

drivers/net/dsa/microchip/ksz_common.c:23:6: warning: no previous prototype for ‘...’ [-Wmissing-prototypes]

Note that the order of the headers cannot be swapped, as that would
trigger missing forward declaration errors, which would indicate the
way forward is to merge the two headers into one.

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Andrew Lunn <andrew@lunn.ch>
Cc: David S. Miller <davem@davemloft.net>
Cc: Florian Fainelli <f.fainelli@gmail.com>
Cc: Tristram Ha <Tristram.Ha@microchip.com>
Cc: Vivien Didelot <vivien.didelot@gmail.com>
Cc: Woojung Huh <woojung.huh@microchip.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/microchip/ksz_common.c
drivers/net/dsa/microchip/ksz_common.h