Skip to contentSkip to conversation

hpt366.c compilation fix

PATCH In review [email protected] 3 participants 3 messages Apr 20, 2003

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 hpt366.c compilation fix

Remove declaration of unused variables.

drivers/ide/pci/hpt366.c +0 -1
diff -u --recursive --new-file -X /linux/dontdiff a/drivers/ide/pci/hpt366.c b/drivers/ide/pci/hpt366.c
@@ -1105,7 +1105,6 @@
 		    (findev->device == dev->device) &&
 		    ((findev->devfn - dev->devfn) == 1) &&
 		    (PCI_FUNC(findev->devfn) & 1)) {
-			u8 irq = 0, irq2 = 0;
 			if (findev->irq != dev->irq) {
 				/* FIXME: we need a core pci_set_interrupt() */
 				findev->irq = dev->irq;
#1 lore raw
Quoted 1 line · [email protected] wrote:

Remove declaration of unused variables.

Would you be open to changing your $subject in the future?

I think it is a bit misleading to call warning fixes "compilation fixes", because by definition warnings to not break compilation, therefore you are not fixing compilation :)

Jeff

#2 lore raw
In reply to [email protected]

drivers/ide/pci/hpt366.c line 1110

Quoted 13 lines · On Sul, 2003-04-20 at 19:23, [email protected] wrote:

Remove declaration of unused variables.

diff -u --recursive --new-file -X /linux/dontdiff a/drivers/ide/pci/hpt366.c b/drivers/ide/pci/hpt366.c

drivers/ide/pci/hpt366.c +0 -1
@@ -1105,7 +1105,6 @@
 		    (findev->device == dev->device) &&
 		    ((findev->devfn - dev->devfn) == 1) &&
 		    (PCI_FUNC(findev->devfn) & 1)) {
-			u8 irq = 0, irq2 = 0;
 			if (findev->irq != dev->irq) {
 				/* FIXME: we need a core pci_set_interrupt() */
 				findev->irq = dev->irq;

Well it compiles regardless but yes that seems right to me