[source] linux/ledtrig-netdev: remove `unsigned < 0` check
LEDE Commits
lede-commits at lists.infradead.org
Sun Jun 11 05:27:47 PDT 2017
lynxis pushed a commit to source.git, branch master:
https://git.lede-project.org/814e1695aa3e2c2cb29e27f66e925a813defee03
commit 814e1695aa3e2c2cb29e27f66e925a813defee03
Author: Alexander Couzens <lynxis at fe80.eu>
AuthorDate: Sun Jun 11 13:30:21 2017 +0200
linux/ledtrig-netdev: remove `unsigned < 0` check
Found-by: Coverity Scan
Signed-off-by: Alexander Couzens <lynxis at fe80.eu>
---
target/linux/generic/files/drivers/leds/ledtrig-netdev.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/target/linux/generic/files/drivers/leds/ledtrig-netdev.c b/target/linux/generic/files/drivers/leds/ledtrig-netdev.c
index 7246bca..8d32490 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);
More information about the lede-commits
mailing list