Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

mtd: nand: denali: remove unused struct member denali_nand_info::idx

The struct member "idx" was used as an index for debug_array long
ago, but the DEBUG_DENALI feature was removed by commit 7cfffac06ca0
("nand/denali: use dev_xx debug function to replace nand_dbg_print
and some printk"). Since then, this has been only initialized, but
never referenced.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Reviewed-by: Marek Vasut <marek.vasut@gmail.com>
Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>

authored by

Masahiro Yamada and committed by
Boris Brezillon
c4ae0977 ef5327dc

-3
-2
drivers/mtd/nand/denali.c
··· 1436 1436 /* initialize driver data structures */ 1437 1437 static void denali_drv_init(struct denali_nand_info *denali) 1438 1438 { 1439 - denali->idx = 0; 1440 - 1441 1439 /* setup interrupt handler */ 1442 1440 /* 1443 1441 * the completion object will be used to notify
-1
drivers/mtd/nand/denali.h
··· 467 467 spinlock_t irq_lock; 468 468 uint32_t irq_status; 469 469 int irq_debug_array[32]; 470 - int idx; 471 470 int irq; 472 471 473 472 uint32_t devnum; /* represent how many nands connected */