mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-06 04:19:23 -04:00
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:
committed by
Greg Kroah-Hartman
parent
c86117a8a8
commit
4e2b07e9ab
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user