mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-13 00:00:00 -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:
parent
c86117a8a8
commit
4e2b07e9ab
1 changed files with 0 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue