summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/pmcraid.c
diff options
context:
space:
mode:
authorDaniel Walter <dwalter@google.com>2014-08-08 14:24:05 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2014-08-08 15:57:28 -0700
commitf7c65af5136f7999121f05a8398dd34a43bad139 (patch)
treea117bb6a8d1cb8a1cf363b35dfbf529f18bfec89 /drivers/scsi/pmcraid.c
parent164109e3cdba52b9f2ece063bc3aa2a90f77c273 (diff)
downloadlinux-stable-f7c65af5136f7999121f05a8398dd34a43bad139.tar.gz
linux-stable-f7c65af5136f7999121f05a8398dd34a43bad139.tar.bz2
linux-stable-f7c65af5136f7999121f05a8398dd34a43bad139.zip
drivers/scsi: replace strict_strto calls
Replace obsolete strict_strto with more appropriate kstrto calls Signed-off-by: Daniel Walter <dwalter@google.com> Cc: "James E.J. Bottomley" <JBottomley@parallels.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/scsi/pmcraid.c')
-rw-r--r--drivers/scsi/pmcraid.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/scsi/pmcraid.c b/drivers/scsi/pmcraid.c
index 017f8b9554e5..6f3275d020a0 100644
--- a/drivers/scsi/pmcraid.c
+++ b/drivers/scsi/pmcraid.c
@@ -4213,9 +4213,9 @@ static ssize_t pmcraid_store_log_level(
{
struct Scsi_Host *shost;
struct pmcraid_instance *pinstance;
- unsigned long val;
+ u8 val;
- if (strict_strtoul(buf, 10, &val))
+ if (kstrtou8(buf, 10, &val))
return -EINVAL;
/* log-level should be from 0 to 2 */
if (val > 2)