diff options
author | Damien Le Moal <damien.lemoal@opensource.wdc.com> | 2022-09-20 08:43:07 +0900 |
---|---|---|
committer | Damien Le Moal <damien.lemoal@opensource.wdc.com> | 2022-09-20 08:43:07 +0900 |
commit | 2d29dd108c787e039593f76c588d8f6d3541eb1c (patch) | |
tree | e41f3d95d4996817e418c807db1aa3ceae6db221 | |
parent | e7840a9aae6f791d8fef47c892821b1915d20747 (diff) | |
download | linux-stable-2d29dd108c787e039593f76c588d8f6d3541eb1c.tar.gz linux-stable-2d29dd108c787e039593f76c588d8f6d3541eb1c.tar.bz2 linux-stable-2d29dd108c787e039593f76c588d8f6d3541eb1c.zip |
ata: ahci_st: Fix compilation warning
Remove the unused variable dev in st_ahci_probe() to avoid compilation
warning and build failures where CONFIG_WERROR is enabled.
Fixes: 3f74cd046fbe ("ata: libahci_platform: Parse ports-implemented property in resources getter")
Signed-off-by: Damien Le Moal <damien.lemoal@opensource.wdc.com>
-rw-r--r-- | drivers/ata/ahci_st.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/ata/ahci_st.c b/drivers/ata/ahci_st.c index 068621099c00..5a2cac60a29a 100644 --- a/drivers/ata/ahci_st.c +++ b/drivers/ata/ahci_st.c @@ -144,7 +144,6 @@ static struct scsi_host_template ahci_platform_sht = { static int st_ahci_probe(struct platform_device *pdev) { - struct device *dev = &pdev->dev; struct st_ahci_drv_data *drv_data; struct ahci_host_priv *hpriv; int err; |