greybus: gb-vibrator: remove useless if in timeout_store()

val is an unsigned long so there is no point in checking if it is less
than zero.

Signed-off-by: Bill Pemberton <wfp5p@worldbroken.com>
Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
This commit is contained in:
Bill Pemberton 2015-01-15 21:18:26 -05:00 committed by Greg Kroah-Hartman
parent c86117a8a8
commit 4e2b07e9ab

View File

@ -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