netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] ipw2200: remove _must_check warning
@ 2006-11-01 20:10 Larry Finger
  0 siblings, 0 replies; only message in thread
From: Larry Finger @ 2006-11-01 20:10 UTC (permalink / raw)
  To: John Linville; +Cc: netdev, yi.zhu

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 <Larry.Finger@lwfinger.net>
---

Index: wireless-2.6/drivers/net/wireless/ipw2200.c
===================================================================
--- wireless-2.6.orig/drivers/net/wireless/ipw2200.c
+++ wireless-2.6/drivers/net/wireless/ipw2200.c
@@ -11728,11 +11728,14 @@ static int ipw_pci_resume(struct pci_dev
 	struct 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);
 
 	/*

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2006-11-01 20:11 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-11-01 20:10 [PATCH] ipw2200: remove _must_check warning Larry Finger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).