aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mtd/devices
diff options
context:
space:
mode:
authorBrian Norris <computersforpeace@gmail.com>2014-05-20 15:01:50 -0400
committerBrian Norris <computersforpeace@gmail.com>2014-05-28 03:05:24 -0400
commited491d2063d41a09a35c7db1a99fea88dbfcd7aa (patch)
treebb07f7c7ecf4175df13eb141640aaee7337be4d6 /drivers/mtd/devices
parent29fe5732bef2ba3c785fcb4aa5ba7160ad8faba5 (diff)
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/mtd/devices')
-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);
280static int __init init_slram(void) 280static int __init init_slram(void)
281{ 281{
282 char *devname; 282 char *devname;
283 int i;
284 283
285#ifndef MODULE 284#ifndef MODULE
286 char *devstart; 285 char *devstart;
287 char *devlength; 286 char *devlength;
288 287
289 i = 0;
290
291 if (!map) { 288 if (!map) {
292 E("slram: not enough parameters.\n"); 289 E("slram: not enough parameters.\n");
293 return(-EINVAL); 290 return(-EINVAL);
@@ -314,6 +311,7 @@ static int __init init_slram(void)
314 } 311 }
315#else 312#else
316 int count; 313 int count;
314 int i;
317 315
318 for (count = 0; count < SLRAM_MAX_DEVICES_PARAMS && map[count]; 316 for (count = 0; count < SLRAM_MAX_DEVICES_PARAMS && map[count];
319 count++) { 317 count++) {