summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorBrian Norris <computersforpeace@gmail.com>2014-05-20 23:01:50 +0400
committerBrian Norris <computersforpeace@gmail.com>2014-05-28 11:05:24 +0400
commited491d2063d41a09a35c7db1a99fea88dbfcd7aa (patch)
treebb07f7c7ecf4175df13eb141640aaee7337be4d6 /drivers
parent29fe5732bef2ba3c785fcb4aa5ba7160ad8faba5 (diff)
downloadlinux-ed491d2063d41a09a35c7db1a99fea88dbfcd7aa.tar.xz
mtd: slram: fix unused variable warning
drivers/mtd/devices/slram.c: In function 'init_slram': drivers/mtd/devices/slram.c:283:6: warning: variable 'i' set but not used [-Wunused-but-set-variable] Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/mtd/devices/slram.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/mtd/devices/slram.c b/drivers/mtd/devices/slram.c
index 5a5cd2ace4a6..2fc4957cbe7f 100644
--- a/drivers/mtd/devices/slram.c
+++ b/drivers/mtd/devices/slram.c
@@ -280,14 +280,11 @@ __setup("slram=", mtd_slram_setup);
static int __init init_slram(void)
{
char *devname;
- int i;
#ifndef MODULE
char *devstart;
char *devlength;
- i = 0;
-
if (!map) {
E("slram: not enough parameters.\n");
return(-EINVAL);
@@ -314,6 +311,7 @@ static int __init init_slram(void)
}
#else
int count;
+ int i;
for (count = 0; count < SLRAM_MAX_DEVICES_PARAMS && map[count];
count++) {