提交 ac2c5bd0 编写于 作者: J Johann Felix Soden 提交者: Jeff Garzik

ata/sata_fsl: Remove unused variable in sata_fsl_probe

In sata_fsl_probe memory is allocated but never used or deallocated.
Fixes: http://bugzilla.kernel.org/show_bug.cgi?id=10404

Thanks to Daniel Marjamäki for the bug report.
Reported-by: NDaniel Marjamäki <danielm77@spray.se>
Signed-off-by: NJohann Felix Soden <johfel@users.sourceforge.net>
Signed-off-by: NJeff Garzik <jeff@garzik.org>
上级 119b3aa6
...@@ -1256,7 +1256,6 @@ static int sata_fsl_probe(struct of_device *ofdev, ...@@ -1256,7 +1256,6 @@ static int sata_fsl_probe(struct of_device *ofdev,
void __iomem *ssr_base = NULL; void __iomem *ssr_base = NULL;
void __iomem *csr_base = NULL; void __iomem *csr_base = NULL;
struct sata_fsl_host_priv *host_priv = NULL; struct sata_fsl_host_priv *host_priv = NULL;
struct resource *r;
int irq; int irq;
struct ata_host *host; struct ata_host *host;
...@@ -1266,8 +1265,6 @@ static int sata_fsl_probe(struct of_device *ofdev, ...@@ -1266,8 +1265,6 @@ static int sata_fsl_probe(struct of_device *ofdev,
dev_printk(KERN_INFO, &ofdev->dev, dev_printk(KERN_INFO, &ofdev->dev,
"Sata FSL Platform/CSB Driver init\n"); "Sata FSL Platform/CSB Driver init\n");
r = kmalloc(sizeof(struct resource), GFP_KERNEL);
hcr_base = of_iomap(ofdev->node, 0); hcr_base = of_iomap(ofdev->node, 0);
if (!hcr_base) if (!hcr_base)
goto error_exit_with_cleanup; goto error_exit_with_cleanup;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册