Messages in this thread Patch in this message | | | From | Alexey Dobriyan <> | Subject | [PATCH 30/52] kstrtox: convert drivers/mmc/ | Date | Sat, 5 Feb 2011 16:20:33 +0200 |
| |
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com> --- drivers/mmc/card/mmc_test.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/mmc/card/mmc_test.c b/drivers/mmc/card/mmc_test.c index 21adc27..108b72c 100644 --- a/drivers/mmc/card/mmc_test.c +++ b/drivers/mmc/card/mmc_test.c @@ -2173,7 +2173,7 @@ static ssize_t mtf_test_write(struct file *file, const char __user *buf, struct mmc_card *card = (struct mmc_card *)sf->private; struct mmc_test_card *test; char lbuf[12]; - long testcase; + int testcase; if (count >= sizeof(lbuf)) return -EINVAL; @@ -2182,7 +2182,7 @@ static ssize_t mtf_test_write(struct file *file, const char __user *buf, return -EFAULT; lbuf[count] = '\0'; - if (strict_strtol(lbuf, 10, &testcase)) + if (kstrtoint(lbuf, 10, &testcase)) return -EINVAL; test = kzalloc(sizeof(struct mmc_test_card), GFP_KERNEL); -- 1.7.3.4
| |