[parisc-linux] possible fix for pci-quirks.c: warning: unused variable
Grant Grundler
grundler at parisc-linux.org
Fri Jun 16 09:46:20 MDT 2006
On Fri, Jun 16, 2006 at 10:48:28AM +0200, Joel Soete wrote:
> Hello,
>
> one solution to this warning:
> /CAD/linux-2.6.17-rc6-pa3/drivers/usb/host/pci-quirks.c: In function
> quirk_usb_handoff_ohci:
> ./linux-2.6.17-rc6-pa3/drivers/usb/host/pci-quirks.c:172: warning: unused
> variable control
> ./linux-2.6.17-rc6-pa3/drivers/usb/host/pci-quirks.c:171: warning: unused
> variable wait_time
> [snip]
Did you check to see why it's not being used?
Sounds like a bug unless no one is using those two variables.
Adding an arch specific ifdef in driver code needs to have a darn good reason.
thanks,
grant
More information about the parisc-linux
mailing list