Skip to contentSkip to conversation

mtd: st_spi_fsm: remove unused variable

PATCH In review Bartosz Golaszewski 2 participants 2 messages Sep 19, 2019 Memory technology devices (MTD)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mtd: st_spi_fsm: remove unused variable

From: Bartosz Golaszewski <[email protected]>

The region resource in struct stfsm is unused and can be removed.

---
 drivers/mtd/devices/st_spi_fsm.c | 1 -
 1 file changed, 1 deletion(-)
drivers/mtd/devices/st_spi_fsm.c +0 -1
index f4d1667daaf9..1888523d9745 100644
@@ -255,7 +255,6 @@ struct stfsm_seq {
 struct stfsm {
 	struct device		*dev;
 	void __iomem		*base;
-	struct resource		*region;
 	struct mtd_info		mtd;
 	struct mutex		lock;
 	struct flash_info       *info;
Signature · 1 line
2.23.0
#1 lore raw

Hello!

Quoted 3 lines · Bartosz Golaszewski

From: Bartosz Golaszewski <[email protected]>

The region resource in struct stfsm is unused and can be removed.

OK, except it's not a variable (as the subject says), it's a structure field.
"region resource" also seems strange...

Quoted 11 lines
---
 drivers/mtd/devices/st_spi_fsm.c | 1 -
 1 file changed, 1 deletion(-)
drivers/mtd/devices/st_spi_fsm.c +0 -0
index f4d1667daaf9..1888523d9745 100644

drivers/mtd/devices/st_spi_fsm.c struct stfsm_seq { · line 260

Quoted 7 lines
drivers/mtd/devices/st_spi_fsm.c +0 -1
@@ -255,7 +255,6 @@ struct stfsm_seq {
 struct stfsm {
 	struct device		*dev;
 	void __iomem		*base;
-	struct resource		*region;
 	struct mtd_info		mtd;
 	struct mutex		lock;
 	struct flash_info       *info;

MBR, Sergei