Skip to contentSkip to conversation

drivers: mtd: ubi: Remove unnecessary struct declaration

PATCH Superseded Wan Jiabing 2 participants 2 messages Apr 6, 2021

Subsystems (2)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drivers: mtd: ubi: Remove unnecessary struct declaration

struct ubi_wl_entry is defined at 178th line.
The declaration here is unnecessary. Remove it.

---
 drivers/mtd/ubi/ubi.h | 2 --
 1 file changed, 2 deletions(-)
drivers/mtd/ubi/ubi.h +0 -2
index c2da77163f94..7c083ad58274 100644
@@ -388,8 +388,6 @@ struct ubi_volume_desc {
 	int mode;
 };
 
-struct ubi_wl_entry;
-
 /**
  * struct ubi_debug_info - debugging information for an UBI device.
  *
Signature · 1 line
2.25.1
Reviewed-by on v1 1/1
#1 lore raw
Quoted 6 lines · Wan Jiabing

EXTERNAL EMAIL: Do not click links or open attachments unless you know the content is safe

struct ubi_wl_entry is defined at 178th line.
The declaration here is unnecessary. Remove it.

the subject of the patch should start with "ubi:", thus "ubi: Remove unnecessary struct declaration"

with that:

Quoted 25 lines
---
 drivers/mtd/ubi/ubi.h | 2 --
 1 file changed, 2 deletions(-)
drivers/mtd/ubi/ubi.h +0 -3
index c2da77163f94..7c083ad58274 100644
@@ -388,8 +388,6 @@ struct ubi_volume_desc {
        int mode;
 };
 
-struct ubi_wl_entry;
-
 /**
  * struct ubi_debug_info - debugging information for an UBI device.
  *
--

2.25.1

______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/