net: dsa: add missing kfree on remove
authorNeil Armstrong <narmstrong@baylibre.com>
Tue, 6 Oct 2015 14:39:53 +0000 (15:39 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 7 Oct 2015 11:56:06 +0000 (04:56 -0700)
commit1023d2ec1e8bd63ede9ed1d93ebb797f650859b7
treef125e0da1f50d0b93857ae5517ca42bbd1754a29
parent6e28b000825d959cb0c0b8fea8c2f132ddc516dc
net: dsa: add missing kfree on remove

To prevent memory leakage on unbinding, add missing kfree calls.
Includes minor cosmetic change to make patch clean.

Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/dsa/dsa.c