Message ID | 1623231595-33851-8-git-send-email-huangguangbin2@huawei.com |
---|---|
State | New |
Headers | show |
Series | net: lapbether: clean up some code style issues | expand |
diff --git a/drivers/net/wan/lapbether.c b/drivers/net/wan/lapbether.c index 60628aa..74694af 100644 --- a/drivers/net/wan/lapbether.c +++ b/drivers/net/wan/lapbether.c @@ -451,7 +451,7 @@ static int lapbeth_device_event(struct notifier_block *this, switch (event) { case NETDEV_UP: /* New ethernet device -> new LAPB interface */ - if (lapbeth_get_x25_dev(dev) == NULL) + if (!lapbeth_get_x25_dev(dev)) lapbeth_new_device(dev); break; case NETDEV_GOING_DOWN: