From: Felix Fietkau Date: Thu, 26 Jun 2014 10:17:46 +0000 (+0200) Subject: device: fall back to simple interface status check if not provided by the device... X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=61e627ed78ed47e40cc63a24ff8fb2f5fb2c418f;p=oweals%2Fnetifd.git device: fall back to simple interface status check if not provided by the device type Signed-off-by: Felix Fietkau --- diff --git a/device.c b/device.c index 7d606c6..b16f156 100644 --- a/device.c +++ b/device.c @@ -262,7 +262,7 @@ void device_release(struct device_user *dep) int device_check_state(struct device *dev) { if (!dev->type->check_state) - return 0; + return simple_device_type.check_state(dev); return dev->type->check_state(dev); }