projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c86117a
)
greybus: gb-vibrator: remove useless if in timeout_store()
author
Bill Pemberton
<wfp5p@worldbroken.com>
Fri, 16 Jan 2015 02:18:26 +0000
(21:18 -0500)
committer
Greg Kroah-Hartman
<greg@kroah.com>
Fri, 16 Jan 2015 19:06:19 +0000
(11:06 -0800)
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>
drivers/staging/greybus/gb-vibrator.c
patch
|
blob
|
history
diff --git
a/drivers/staging/greybus/gb-vibrator.c
b/drivers/staging/greybus/gb-vibrator.c
index
c85d950
..
b5332df
100644
(file)
--- 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