Skip to contentSkip to conversation

hpt366: kill unused variable

PATCH Sergei Shtylyov 1 participant 1 message Oct 15, 2008 libata

lore
Share & tools
lore
#0 lore raw

Fix the "unused variable" warning in init_hwif_hpt366() caused by the commit 1785192b5310ee25165768f5bb80f13146788e3e (hpt366: add hpt3xx_disable_fast_irq() helper).

---
This patch is against the recent Linus' kernel...

 drivers/ide/pci/hpt366.c |    1 -
 1 files changed, 1 deletion(-)
drivers/ide/pci/hpt366.c +0 -1
Index: linux-2.6/drivers/ide/pci/hpt366.c
===================================================================
@@ -1289,7 +1289,6 @@ static u8 hpt3xx_cable_detect(ide_hwif_t
 
 static void __devinit init_hwif_hpt366(ide_hwif_t *hwif)
 {
-	struct pci_dev *dev	= to_pci_dev(hwif->dev);
 	struct hpt_info *info	= hpt3xx_get_info(hwif->dev);
 	int serialize		= HPT_SERIALIZE_IO;
 	u8  chip_type		= info->chip_type;