mirror of https://github.com/hak5/openwrt.git
linux/ledtrig-netdev: remove `unsigned < 0` check
Found-by: Coverity Scan Signed-off-by: Alexander Couzens <lynxis@fe80.eu>openwrt-18.06
parent
296312fca1
commit
814e1695aa
|
@ -113,7 +113,7 @@ static ssize_t led_device_name_store(struct device *dev,
|
||||||
struct led_classdev *led_cdev = dev_get_drvdata(dev);
|
struct led_classdev *led_cdev = dev_get_drvdata(dev);
|
||||||
struct led_netdev_data *trigger_data = led_cdev->trigger_data;
|
struct led_netdev_data *trigger_data = led_cdev->trigger_data;
|
||||||
|
|
||||||
if (size < 0 || size >= IFNAMSIZ)
|
if (size >= IFNAMSIZ)
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
|
|
||||||
cancel_delayed_work_sync(&trigger_data->work);
|
cancel_delayed_work_sync(&trigger_data->work);
|
||||||
|
|
Loading…
Reference in New Issue