The fix was supposed to: Fix "empty body in an if-statement" warning
But now the compilation returns:
/root/more/madwifi-ng/ath/if_ath_pci.c: In function 'ath_pci_suspend':
/root/more/madwifi-ng/ath/if_ath_pci.c:268: warning: ignoring return value of 'pci_set_power_state', declared with attribute warn_unused_result
Suggested patch:
Index: ath/if_ath_pci.c
===================================================================
--- ath/if_ath_pci.c (revision 1659)
+++ ath/if_ath_pci.c (working copy)
@@ -265,7 +265,8 @@
ath_suspend(dev);
PCI_SAVE_STATE(pdev, ((struct ath_pci_softc *)dev->priv)->aps_pmstate);
pci_disable_device(pdev);
- pci_set_power_state(pdev, PCI_D3hot);
+ if(pci_set_power_state(pdev, PCI_D3hot))
+ return 1;
return 0;
}