diff mbox series

ata: ahci_st: Remove an unused field in struct st_ahci_drv_data

Message ID f1804954a746e93382429cf38e4f1f9fb46bb578.1711975449.git.christophe.jaillet@wanadoo.fr (mailing list archive)
State New, archived
Headers show
Series ata: ahci_st: Remove an unused field in struct st_ahci_drv_data | expand

Commit Message

Christophe JAILLET April 1, 2024, 12:44 p.m. UTC
In "struct st_ahci_drv_data", the 'ahci' field is unused.
Remove it.

Found with cppcheck, unusedStructMember.

Signed-off-by: Christophe JAILLET <christophe.jaillet@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(-)

Comments

Damien Le Moal April 2, 2024, 3:29 a.m. UTC | #1
On 4/1/24 21:44, Christophe JAILLET wrote:
> In "struct st_ahci_drv_data", the 'ahci' field is unused.
> Remove it.
> 
> Found with cppcheck, unusedStructMember.
> 
> Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>

Applied to for-6.9-fixes. Thanks !
diff mbox series

Patch

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;