diff mbox series

mtd: ssfdc: Remove an unused variable

Message ID 20231205075431.13401-1-miquel.raynal@bootlin.com
State Accepted
Headers show
Series mtd: ssfdc: Remove an unused variable | expand

Commit Message

Miquel Raynal Dec. 5, 2023, 7:54 a.m. UTC
Since its introduction the driver was declaring a "usecount" variable,
but nobody ever used it upstream.

This was spot while grepping for usecount through mtd/ for other
reasons.

Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
---
 drivers/mtd/ssfdc.c | 1 -
 1 file changed, 1 deletion(-)

Comments

Miquel Raynal Dec. 15, 2023, 10:59 a.m. UTC | #1
On Tue, 2023-12-05 at 07:54:31 UTC, Miquel Raynal wrote:
> Since its introduction the driver was declaring a "usecount" variable,
> but nobody ever used it upstream.
> 
> This was spot while grepping for usecount through mtd/ for other
> reasons.
> 
> Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>

Applied to https://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux.git mtd/next.

Miquel
diff mbox series

Patch

diff --git a/drivers/mtd/ssfdc.c b/drivers/mtd/ssfdc.c
index 04da685c36be..211f279a33a9 100644
--- a/drivers/mtd/ssfdc.c
+++ b/drivers/mtd/ssfdc.c
@@ -18,7 +18,6 @@ 
 
 struct ssfdcr_record {
 	struct mtd_blktrans_dev mbd;
-	int usecount;
 	unsigned char heads;
 	unsigned char sectors;
 	unsigned short cylinders;