From: Damien Le Moal Date: Mon, 19 Sep 2022 23:43:07 +0000 (+0900) Subject: ata: ahci_st: Fix compilation warning X-Git-Tag: v6.6.17~6465^2~9 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2d29dd108c787e039593f76c588d8f6d3541eb1c;p=platform%2Fkernel%2Flinux-rpi.git 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 --- diff --git a/drivers/ata/ahci_st.c b/drivers/ata/ahci_st.c index 0686210..5a2cac6 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;