summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2017-07-29 11:35:10 -0600
committerJaehoon Chung <jh80.chung@samsung.com>2017-08-17 16:44:17 +0900
commit5908d85eb7be81588bb90ad61b07fb8dd0ec3f58 (patch)
tree83946285c60e8b8b7433c2181704525946903b41 /drivers
parent90abb28fcfc00d5396000bcda8a8ce871b8412ff (diff)
dm: sata: dw_sata: Drop is_ready
This variable is set but never used. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/ata/dwc_ahsata.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/ata/dwc_ahsata.c b/drivers/ata/dwc_ahsata.c
index 8056bc94a3..4b89a8b788 100644
--- a/drivers/ata/dwc_ahsata.c
+++ b/drivers/ata/dwc_ahsata.c
@@ -77,8 +77,6 @@ struct sata_host_regs {
#define writel_with_flush(a, b) do { writel(a, b); readl(b); } while (0)
-static int is_ready;
-
static inline void __iomem *ahci_port_base(void __iomem *base, u32 port)
{
return base + 0x100 + (port * 0x80);
@@ -938,7 +936,5 @@ int scan_sata(int dev)
dwc_ahsata_print_info(&sata_dev_desc[dev]);
- is_ready = 1;
-
return 0;
}