diff options
Diffstat (limited to 'drivers/ata/sata_inic162x.c')
-rw-r--r-- | drivers/ata/sata_inic162x.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/ata/sata_inic162x.c b/drivers/ata/sata_inic162x.c index dc35f4d42b8b..1e6827c89429 100644 --- a/drivers/ata/sata_inic162x.c +++ b/drivers/ata/sata_inic162x.c | |||
@@ -273,12 +273,10 @@ static void inic_reset_port(void __iomem *port_base) | |||
273 | static int inic_scr_read(struct ata_link *link, unsigned sc_reg, u32 *val) | 273 | static int inic_scr_read(struct ata_link *link, unsigned sc_reg, u32 *val) |
274 | { | 274 | { |
275 | void __iomem *scr_addr = inic_port_base(link->ap) + PORT_SCR; | 275 | void __iomem *scr_addr = inic_port_base(link->ap) + PORT_SCR; |
276 | void __iomem *addr; | ||
277 | 276 | ||
278 | if (unlikely(sc_reg >= ARRAY_SIZE(scr_map))) | 277 | if (unlikely(sc_reg >= ARRAY_SIZE(scr_map))) |
279 | return -EINVAL; | 278 | return -EINVAL; |
280 | 279 | ||
281 | addr = scr_addr + scr_map[sc_reg] * 4; | ||
282 | *val = readl(scr_addr + scr_map[sc_reg] * 4); | 280 | *val = readl(scr_addr + scr_map[sc_reg] * 4); |
283 | 281 | ||
284 | /* this controller has stuck DIAG.N, ignore it */ | 282 | /* this controller has stuck DIAG.N, ignore it */ |