diff --git a/src/adhoc.c b/src/adhoc.c index 673b3736..19efeaee 100644 --- a/src/adhoc.c +++ b/src/adhoc.c @@ -540,11 +540,6 @@ static void adhoc_remove_interface(struct netdev *netdev) static void adhoc_netdev_watch(struct netdev *netdev, enum netdev_watch_event event, void *userdata) { - struct device *device = netdev_get_device(netdev); - - if (!device) - return; - switch (event) { case NETDEV_WATCH_EVENT_UP: case NETDEV_WATCH_EVENT_NEW: diff --git a/src/ap.c b/src/ap.c index 4785d38a..481e4c3e 100644 --- a/src/ap.c +++ b/src/ap.c @@ -1452,11 +1452,6 @@ static void ap_remove_interface(struct netdev *netdev) static void ap_netdev_watch(struct netdev *netdev, enum netdev_watch_event event, void *userdata) { - struct device *device = netdev_get_device(netdev); - - if (!device) - return; - switch (event) { case NETDEV_WATCH_EVENT_UP: case NETDEV_WATCH_EVENT_NEW: diff --git a/src/station.c b/src/station.c index 027b7002..7613c0a7 100644 --- a/src/station.c +++ b/src/station.c @@ -2322,11 +2322,6 @@ static void station_destroy_interface(void *user_data) static void station_netdev_watch(struct netdev *netdev, enum netdev_watch_event event, void *userdata) { - struct device *device = netdev_get_device(netdev); - - if (!device) - return; - switch (event) { case NETDEV_WATCH_EVENT_UP: case NETDEV_WATCH_EVENT_NEW: diff --git a/src/wsc.c b/src/wsc.c index 79a021ad..e872bed5 100644 --- a/src/wsc.c +++ b/src/wsc.c @@ -1080,11 +1080,6 @@ static void wsc_remove_interface(struct netdev *netdev) static void wsc_netdev_watch(struct netdev *netdev, enum netdev_watch_event event, void *userdata) { - struct device *device = netdev_get_device(netdev); - - if (!device) - return; - switch (event) { case NETDEV_WATCH_EVENT_UP: case NETDEV_WATCH_EVENT_NEW: