aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ata
diff options
context:
space:
mode:
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>2012-10-22 04:55:50 -0400
committerJeff Garzik <jgarzik@redhat.com>2012-11-28 12:38:53 -0500
commit8b34f2cc99df7275652ac6b522a767d750a02b3a (patch)
tree7626e2b2b583892e5c6170aab519d59c949f5110 /drivers/ata
parentabf8f2b877846573f0e6498883fe43f08be5696d (diff)
pata_rdc: remove unused variable in rdc_init_one()
The variable port_flags 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')
-rw-r--r--drivers/ata/pata_rdc.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/ata/pata_rdc.c b/drivers/ata/pata_rdc.c
index 32a3499e83e7..e71f998dd90d 100644
--- a/drivers/ata/pata_rdc.c
+++ b/drivers/ata/pata_rdc.c
@@ -327,7 +327,6 @@ static int __devinit rdc_init_one(struct pci_dev *pdev,
327 struct device *dev = &pdev->dev; 327 struct device *dev = &pdev->dev;
328 struct ata_port_info port_info[2]; 328 struct ata_port_info port_info[2];
329 const struct ata_port_info *ppi[] = { &port_info[0], &port_info[1] }; 329 const struct ata_port_info *ppi[] = { &port_info[0], &port_info[1] };
330 unsigned long port_flags;
331 struct ata_host *host; 330 struct ata_host *host;
332 struct rdc_host_priv *hpriv; 331 struct rdc_host_priv *hpriv;
333 int rc; 332 int rc;
@@ -337,8 +336,6 @@ static int __devinit rdc_init_one(struct pci_dev *pdev,
337 port_info[0] = rdc_port_info; 336 port_info[0] = rdc_port_info;
338 port_info[1] = rdc_port_info; 337 port_info[1] = rdc_port_info;
339 338
340 port_flags = port_info[0].flags;
341
342 /* enable device and prepare host */ 339 /* enable device and prepare host */
343 rc = pcim_enable_device(pdev); 340 rc = pcim_enable_device(pdev);
344 if (rc) 341 if (rc)