drivers/isdn/hardware/mISDN/hfcpci.c compiler warning seems like aBUG

From: Jaswinder Singh Rajput
Date: Wed Jul 15 2009 - 02:40:29 EST


I am getting this compiler warning in linus tree :

CC [M] drivers/isdn/hardware/mISDN/hfcpci.o
drivers/isdn/hardware/mISDN/hfcpci.c: In function âhfcpci_softirqâ:
drivers/isdn/hardware/mISDN/hfcpci.c:2333: warning: ignoring return value of âdriver_for_each_deviceâ, declared with attribute warn_unused_result

static void
hfcpci_softirq(void *arg)
{
(void) 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)
hfc_jiffies = jiffies + 1;
else
hfc_jiffies += tics;
hfc_tl.expires = hfc_jiffies;
add_timer(&hfc_tl);
}

It seems to me it should return is driver_for_each_device fails :
if (driver_for_each_device(&hfc_driver.driver, NULL, arg,
_hfcpci_softirq))
return;

or if possible can we return this error code for hfcpci_softirq()

Thanks,
--
JSR


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/