[PATCH] ata: ahci_st: Remove an unused field in struct st_ahci_drv_data
Christophe JAILLET
christophe.jaillet at wanadoo.fr
Mon Apr 1 05:44:29 PDT 2024
In "struct st_ahci_drv_data", the 'ahci' field is unused.
Remove it.
Found with cppcheck, unusedStructMember.
Signed-off-by: Christophe JAILLET <christophe.jaillet at wanadoo.fr>
---
Apparently, it has never be used. It is not a left-over from a refactoring.
Compile tested only.
---
drivers/ata/ahci_st.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/drivers/ata/ahci_st.c b/drivers/ata/ahci_st.c
index d4a626f87963..79a8b0aa37bf 100644
--- a/drivers/ata/ahci_st.c
+++ b/drivers/ata/ahci_st.c
@@ -30,7 +30,6 @@
#define ST_AHCI_OOBR_CIMAX_SHIFT 0
struct st_ahci_drv_data {
- struct platform_device *ahci;
struct reset_control *pwr;
struct reset_control *sw_rst;
struct reset_control *pwr_rst;
--
2.44.0
More information about the linux-arm-kernel
mailing list