Patchwork : Fix warning in _hfcpci_softirq()

login
register
mail settings
Submitter Prarit Bhargava
Date May 22, 2010, 12:33 a.m.
Message ID <20100522002923.25277.39005.sendpatchset@prarit.bos.redhat.com>
Download mbox | patch
Permalink /patch/53230/
State Rejected
Delegated to: David Miller
Headers show

Comments

Prarit Bhargava - May 22, 2010, 12:33 a.m.
Fix warning:

drivers/isdn/hardware/mISDN/hfcpci.c: In function `hfcpci_softirq':
drivers/isdn/hardware/mISDN/hfcpci.c:2321: warning: ignoring return value of `driver_for_each_device', declared with attribute warn_unused_result

Signed-off-by: Prarit Bhargava <prarit@redhat.com>

--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Patch

diff --git a/drivers/isdn/hardware/mISDN/hfcpci.c b/drivers/isdn/hardware/mISDN/hfcpci.c
index 5940a2c..12484d7 100644
--- a/drivers/isdn/hardware/mISDN/hfcpci.c
+++ b/drivers/isdn/hardware/mISDN/hfcpci.c
@@ -2317,8 +2317,10 @@  _hfcpci_softirq(struct device *dev, void *arg)
 static void
 hfcpci_softirq(void *arg)
 {
-	(void) driver_for_each_device(&hfc_driver.driver, NULL, arg,
-					_hfcpci_softirq);
+	int ret;
+
+	ret = driver_for_each_device(&hfc_driver.driver, NULL, arg,
+				     _hfcpci_softirq);
 
 	/* if next event would be in the past ... */
 	if ((s32)(hfc_jiffies + tics - jiffies) <= 0)