Commit ed491d2063d41a09a35c7db1a99fea88dbfcd7aa
1 parent
29fe5732be
Exists in
ti-lsk-linux-4.1.y
and in
10 other branches
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>
Showing 1 changed file with 1 additions and 3 deletions Side-by-side Diff
drivers/mtd/devices/slram.c
... | ... | @@ -280,14 +280,11 @@ |
280 | 280 | static int __init init_slram(void) |
281 | 281 | { |
282 | 282 | char *devname; |
283 | - int i; | |
284 | 283 | |
285 | 284 | #ifndef MODULE |
286 | 285 | char *devstart; |
287 | 286 | char *devlength; |
288 | 287 | |
289 | - i = 0; | |
290 | - | |
291 | 288 | if (!map) { |
292 | 289 | E("slram: not enough parameters.\n"); |
293 | 290 | return(-EINVAL); |
... | ... | @@ -314,6 +311,7 @@ |
314 | 311 | } |
315 | 312 | #else |
316 | 313 | int count; |
314 | + int i; | |
317 | 315 | |
318 | 316 | for (count = 0; count < SLRAM_MAX_DEVICES_PARAMS && map[count]; |
319 | 317 | count++) { |