]> git.baikalelectronics.ru Git - kernel.git/commit
atlx: fix warning in drivers/net/atlx/atl2.c
authorIngo Molnar <mingo@elte.hu>
Wed, 26 Nov 2008 01:00:05 +0000 (17:00 -0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 26 Nov 2008 01:00:05 +0000 (17:00 -0800)
commitf9f087e8c697ac447d6fa1829e16aa78299f50fb
tree3aa91ccc9bd3019cf5bfd22fad4bb4a819e9863c
parent6238837ac0e0274ceb92618b3870a5e43dc8d452
atlx: fix warning in drivers/net/atlx/atl2.c

fix this warning:

  drivers/net/atlx/atl2.c: In function ‘atl2_request_irq’:
  drivers/net/atlx/atl2.c:644: warning: unused variable ‘err’

'err' is unused in the !CONFIG_PCI_MSI case.

Instead of further increasing the #ifdeffery in this function,
restructure the code a bit and get rid of the #ifdef. This
relies on the fact that pci_enable_msi() will always fail in
the !CONFIG_PCI_MSI case.

There should be no change in driver behavior.

Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/atlx/atl2.c