* [PATCH] mtd: st_spi_fsm: remove unused variable
@ 2019-09-19 12:29 Bartosz Golaszewski
2019-09-19 15:08 ` Sergei Shtylyov
0 siblings, 1 reply; 2+ messages in thread
From: Bartosz Golaszewski @ 2019-09-19 12:29 UTC (permalink / raw)
To: David Woodhouse, Brian Norris, Marek Vasut, Miquel Raynal,
Richard Weinberger, Vignesh Raghavendra
Cc: linux-mtd, linux-kernel, Bartosz Golaszewski
From: Bartosz Golaszewski <bgolaszewski@baylibre.com>
The region resource in struct stfsm is unused and can be removed.
Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
---
drivers/mtd/devices/st_spi_fsm.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/drivers/mtd/devices/st_spi_fsm.c b/drivers/mtd/devices/st_spi_fsm.c
index f4d1667daaf9..1888523d9745 100644
--- a/drivers/mtd/devices/st_spi_fsm.c
+++ b/drivers/mtd/devices/st_spi_fsm.c
@@ -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;
--
2.23.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] mtd: st_spi_fsm: remove unused variable
2019-09-19 12:29 [PATCH] mtd: st_spi_fsm: remove unused variable Bartosz Golaszewski
@ 2019-09-19 15:08 ` Sergei Shtylyov
0 siblings, 0 replies; 2+ messages in thread
From: Sergei Shtylyov @ 2019-09-19 15:08 UTC (permalink / raw)
To: Bartosz Golaszewski, David Woodhouse, Brian Norris, Marek Vasut,
Miquel Raynal, Richard Weinberger, Vignesh Raghavendra
Cc: Bartosz Golaszewski, linux-mtd, linux-kernel
Hello!
On 09/19/2019 03:29 PM, Bartosz Golaszewski wrote:
> From: Bartosz Golaszewski <bgolaszewski@baylibre.com>
>
> 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...
>
> Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
> ---
> drivers/mtd/devices/st_spi_fsm.c | 1 -
> 1 file changed, 1 deletion(-)
>
> diff --git a/drivers/mtd/devices/st_spi_fsm.c b/drivers/mtd/devices/st_spi_fsm.c
> index f4d1667daaf9..1888523d9745 100644
> --- a/drivers/mtd/devices/st_spi_fsm.c
> +++ b/drivers/mtd/devices/st_spi_fsm.c
> @@ -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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2019-09-19 15:08 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-09-19 12:29 [PATCH] mtd: st_spi_fsm: remove unused variable Bartosz Golaszewski
2019-09-19 15:08 ` Sergei Shtylyov
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).