--- zzzz-none-000/linux-3.10.107/drivers/mtd/devices/slram.c 2017-06-27 09:49:32.000000000 +0000 +++ scorpion-7490-727/linux-3.10.107/drivers/mtd/devices/slram.c 2021-02-04 17:41:59.000000000 +0000 @@ -41,7 +41,7 @@ #include #include #include -#include +#include #include @@ -280,14 +280,11 @@ 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 @@ } #else int count; + int i; for (count = 0; count < SLRAM_MAX_DEVICES_PARAMS && map[count]; count++) {