Commit 8b34f2cc authored by Wei Yongjun's avatar Wei Yongjun Committed by Jeff Garzik

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: default avatarWei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: default avatarJeff Garzik <jgarzik@redhat.com>
parent abf8f2b8
...@@ -327,7 +327,6 @@ static int __devinit rdc_init_one(struct pci_dev *pdev, ...@@ -327,7 +327,6 @@ static int __devinit rdc_init_one(struct pci_dev *pdev,
struct device *dev = &pdev->dev; struct device *dev = &pdev->dev;
struct ata_port_info port_info[2]; struct ata_port_info port_info[2];
const struct ata_port_info *ppi[] = { &port_info[0], &port_info[1] }; const struct ata_port_info *ppi[] = { &port_info[0], &port_info[1] };
unsigned long port_flags;
struct ata_host *host; struct ata_host *host;
struct rdc_host_priv *hpriv; struct rdc_host_priv *hpriv;
int rc; int rc;
...@@ -337,8 +336,6 @@ static int __devinit rdc_init_one(struct pci_dev *pdev, ...@@ -337,8 +336,6 @@ static int __devinit rdc_init_one(struct pci_dev *pdev,
port_info[0] = rdc_port_info; port_info[0] = rdc_port_info;
port_info[1] = rdc_port_info; port_info[1] = rdc_port_info;
port_flags = port_info[0].flags;
/* enable device and prepare host */ /* enable device and prepare host */
rc = pcim_enable_device(pdev); rc = pcim_enable_device(pdev);
if (rc) if (rc)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment