aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/generic/files
diff options
context:
space:
mode:
authorAlexander Couzens <lynxis@fe80.eu>2017-06-11 13:30:21 +0200
committerAlexander Couzens <lynxis@fe80.eu>2017-06-11 14:22:44 +0200
commit814e1695aa3e2c2cb29e27f66e925a813defee03 (patch)
tree5cdabea3a893df40194117982a476c459b7853ee /target/linux/generic/files
parent296312fca13a4cab1d157e0474e1f0bcca6adf5c (diff)
downloadupstream-814e1695aa3e2c2cb29e27f66e925a813defee03.tar.gz
upstream-814e1695aa3e2c2cb29e27f66e925a813defee03.tar.bz2
upstream-814e1695aa3e2c2cb29e27f66e925a813defee03.zip
linux/ledtrig-netdev: remove `unsigned < 0` check
Found-by: Coverity Scan Signed-off-by: Alexander Couzens <lynxis@fe80.eu>
Diffstat (limited to 'target/linux/generic/files')
-rw-r--r--target/linux/generic/files/drivers/leds/ledtrig-netdev.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/target/linux/generic/files/drivers/leds/ledtrig-netdev.c b/target/linux/generic/files/drivers/leds/ledtrig-netdev.c
index 7246bcaf7e..8d3249010d 100644
--- a/target/linux/generic/files/drivers/leds/ledtrig-netdev.c
+++ b/target/linux/generic/files/drivers/leds/ledtrig-netdev.c
@@ -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_netdev_data *trigger_data = led_cdev->trigger_data;
- if (size < 0 || size >= IFNAMSIZ)
+ if (size >= IFNAMSIZ)
return -EINVAL;
cancel_delayed_work_sync(&trigger_data->work);