mirror of
https://github.com/FEX-Emu/linux.git
synced 2024-12-17 22:41:25 +00:00
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>
This commit is contained in:
parent
29fe5732be
commit
ed491d2063
@ -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++) {
|
||||
|
Loading…
Reference in New Issue
Block a user