ipw2200: remove _must_check warning
Subsystems (3)
PATCH 1/1 ipw2200: remove _must_check warning
In kernel 2.6.19, there is a configuration option that enables the _must_check logic. This patch adds a check and removes the warning for a pci_enable_device call in the ipw2200 driver.
Signed-off-by Larry Finger <[email protected]>
---
drivers/net/wireless/ipw2200.c +4 -1
@@ -11728,11 +11728,14 @@ static int ipw_pci_resume(struct pci_devstruct ipw_priv *priv =pci_get_drvdata (pdev);struct net_device *dev = priv->net_dev;u32 val; +int err;printk (KERN_INFO "%s: Coming out of suspend...\n" , dev->name);pci_set_power_state (pdev,PCI_D0 ); -pci_enable_device (pdev); + err =pci_enable_device (pdev); +if (err) +return err;pci_restore_state (pdev);/*