]> 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)
commitea6fbe348bee7ddfc2188905523841776df582ea
tree67a4fbcc4982a51fc30f692750cb98e3328dac1b
parent572e14f946262fbfe292297483917325523d1ab9
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