projects
/
deliverable
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
macintosh/ams: Replace strict_strtoul() with kstrtoul()
[deliverable/linux.git]
/
drivers
/
macintosh
/
ams
/
ams-input.c
diff --git
a/drivers/macintosh/ams/ams-input.c
b/drivers/macintosh/ams/ams-input.c
index b27e530a87a4dc6f17046de52c22011efbf7da36..2edae7dfcab25407c4c677bcfad6e4f3bdf4e57f 100644
(file)
--- a/
drivers/macintosh/ams/ams-input.c
+++ b/
drivers/macintosh/ams/ams-input.c
@@
-118,8
+118,12
@@
static ssize_t ams_input_store_joystick(struct device *dev,
{
unsigned long enable;
int error = 0;
+ int ret;
- if (strict_strtoul(buf, 0, &enable) || enable > 1)
+ ret = kstrtoul(buf, 0, &enable);
+ if (ret)
+ return ret;
+ if (enable > 1)
return -EINVAL;
mutex_lock(&ams_input_mutex);
This page took
0.025491 seconds
and
5
git commands to generate.