summaryrefslogtreecommitdiffstats
path: root/drivers/ata/sata_inic162x.c
diff options
context:
space:
mode:
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>2012-10-22 10:58:30 +0200
committerJeff Garzik <jgarzik@redhat.com>2012-11-28 18:39:09 +0100
commit7f0658d37f2d9a3a251f5b0bf1877eb9ec593f04 (patch)
tree53aab53a6ed2fc88661941a435d32c54c2cf870d /drivers/ata/sata_inic162x.c
parentpata_rdc: remove unused variable in rdc_init_one() (diff)
downloadlinux-7f0658d37f2d9a3a251f5b0bf1877eb9ec593f04.tar.xz
linux-7f0658d37f2d9a3a251f5b0bf1877eb9ec593f04.zip
sata_inic162x: remove unused variable in inic_scr_read()
The variable addr is initialized but never used otherwise, so remove the unused variable. dpatch engine is used to auto generate this patch. (https://github.com/weiyj/dpatch) Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn> Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
Diffstat (limited to 'drivers/ata/sata_inic162x.c')
-rw-r--r--drivers/ata/sata_inic162x.c2
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)
static int inic_scr_read(struct ata_link *link, unsigned sc_reg, u32 *val)
{
void __iomem *scr_addr = inic_port_base(link->ap) + PORT_SCR;
- void __iomem *addr;
if (unlikely(sc_reg >= ARRAY_SIZE(scr_map)))
return -EINVAL;
- addr = scr_addr + scr_map[sc_reg] * 4;
*val = readl(scr_addr + scr_map[sc_reg] * 4);
/* this controller has stuck DIAG.N, ignore it */