net: dsa: uninitialized variable in dsa_slave_netdevice_event()
Return zero if both dsa_slave_dev_check() and netdev_uses_dsa() are false.
Fixes: acc43b7bf5
("net: dsa: allow masters to join a LAG")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
Родитель
9408f3d321
Коммит
0a6d58a70a
|
@ -3145,7 +3145,7 @@ static int dsa_slave_netdevice_event(struct notifier_block *nb,
|
|||
case NETDEV_CHANGELOWERSTATE: {
|
||||
struct netdev_notifier_changelowerstate_info *info = ptr;
|
||||
struct dsa_port *dp;
|
||||
int err;
|
||||
int err = 0;
|
||||
|
||||
if (dsa_slave_dev_check(dev)) {
|
||||
dp = dsa_slave_to_port(dev);
|
||||
|
|
Загрузка…
Ссылка в новой задаче