summaryrefslogtreecommitdiffstats
path: root/drivers/staging
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/staging')
-rw-r--r--drivers/staging/greybus/gb-vibrator.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/staging/greybus/gb-vibrator.c b/drivers/staging/greybus/gb-vibrator.c
index c85d95085040..b5332df7039c 100644
--- a/drivers/staging/greybus/gb-vibrator.c
+++ b/drivers/staging/greybus/gb-vibrator.c
@@ -100,8 +100,6 @@ static ssize_t timeout_store(struct device *dev, struct device_attribute *attr,
return retval;
}
- if (val < 0)
- return -EINVAL;
if (val)
retval = turn_on(vib, (u16)val);
else