Commit 4e2b07e9 authored by Bill Pemberton's avatar Bill Pemberton Committed by Greg Kroah-Hartman

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: default avatarBill Pemberton <wfp5p@worldbroken.com>
Signed-off-by: default avatarGreg Kroah-Hartman <greg@kroah.com>
parent c86117a8
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment