diff options
author | Alexey Dobriyan <adobriyan@gmail.com> | 2011-03-26 22:58:35 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-03-31 00:39:22 -0400 |
commit | 19eccc2bc6ad3b1c81d0826a77955500be972504 (patch) | |
tree | b21ac85301da189c791ee901185316d5b2e5049d /drivers/isdn/hysdn | |
parent | dffc6b2432ea89af24a36e8100b3eeea09db67e5 (diff) |
kstrtox: convert drivers/isdn/
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/isdn/hysdn')
-rw-r--r-- | drivers/isdn/hysdn/hysdn_proclog.c | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/drivers/isdn/hysdn/hysdn_proclog.c b/drivers/isdn/hysdn/hysdn_proclog.c index 2ee93d04b2dd..236cc7dadfd0 100644 --- a/drivers/isdn/hysdn/hysdn_proclog.c +++ b/drivers/isdn/hysdn/hysdn_proclog.c | |||
@@ -155,7 +155,6 @@ put_log_buffer(hysdn_card * card, char *cp) | |||
155 | static ssize_t | 155 | static ssize_t |
156 | hysdn_log_write(struct file *file, const char __user *buf, size_t count, loff_t * off) | 156 | hysdn_log_write(struct file *file, const char __user *buf, size_t count, loff_t * off) |
157 | { | 157 | { |
158 | unsigned long u = 0; | ||
159 | int rc; | 158 | int rc; |
160 | unsigned char valbuf[128]; | 159 | unsigned char valbuf[128]; |
161 | hysdn_card *card = file->private_data; | 160 | hysdn_card *card = file->private_data; |
@@ -167,12 +166,10 @@ hysdn_log_write(struct file *file, const char __user *buf, size_t count, loff_t | |||
167 | 166 | ||
168 | valbuf[count] = 0; /* terminating 0 */ | 167 | valbuf[count] = 0; /* terminating 0 */ |
169 | 168 | ||
170 | rc = strict_strtoul(valbuf, 0, &u); | 169 | rc = kstrtoul(valbuf, 0, &card->debug_flags); |
171 | 170 | if (rc < 0) | |
172 | if (rc == 0) { | 171 | return rc; |
173 | card->debug_flags = u; /* remember debug flags */ | 172 | hysdn_addlog(card, "debug set to 0x%lx", card->debug_flags); |
174 | hysdn_addlog(card, "debug set to 0x%lx", card->debug_flags); | ||
175 | } | ||
176 | return (count); | 173 | return (count); |
177 | } /* hysdn_log_write */ | 174 | } /* hysdn_log_write */ |
178 | 175 | ||