]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: exit probe if no switch were found
authorNeil Armstrong <narmstrong@baylibre.com>
Tue, 6 Oct 2015 14:40:43 +0000 (15:40 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 7 Oct 2015 11:56:11 +0000 (04:56 -0700)
commite4b8948c4708eef0c182d214c820cb68d7244786
tree67a4fbcc4982a51fc30f692750cb98e3328dac1b
parent35239f629ee5a6da9293898819ee1470efb25248
net: dsa: exit probe if no switch were found

If no switch were found in dsa_setup_dst, return -ENODEV and
exit the dsa_probe cleanly.

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