[PATCH 31/45] kstrtox: convert drivers/mmc/

From: Alexey Dobriyan
Date: Sun Dec 05 2010 - 12:51:42 EST



Signed-off-by: Alexey Dobriyan <adobriyan@xxxxxxxxx>
---
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.2.2

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/