ISDN, hfcpci Fix uninitialized warning
Subsystems (2)
PATCH 1/1 ISDN, hfcpci Fix uninitialized warning
Fix uninitialized warning. Use same fix asdrivers/media/pci/cx18/cx18-alsa-main.c
CC [M] drivers/isdn/hardware/mISDN/hfcpci.o drivers/isdn/hardware/mISDN/hfcpci.c: In function ‘hfcpci_softirq’:
drivers/isdn/hardware/mISDN/hfcpci.c:2298:2: error: ignoring return value of ‘driver_for_each_device’, declared with attribute warn_unused_result [-Werror=unused-result]
(void) driver_for_each_device(&hfc_driver.driver, NULL, arg,
^
Signed-off-by Prarit Bhargava <[email protected]>
Cc Karsten Keil <[email protected]>
--- drivers/isdn/hardware/mISDN/hfcpci.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)
drivers/isdn/hardware/mISDN/hfcpci.c +5 -1
@@ -2295,8 +2295,12 @@ _hfcpci_softirq(struct device *dev, void *arg)static void hfcpci_softirq (void *arg) { - (void )driver_for_each_device (&hfc_driver.driver,NULL , arg, +int ret; + + ret =driver_for_each_device (&hfc_driver.driver,NULL , arg, _hfcpci_softirq); +if (unlikely (ret)) +pr_warn ("hfcpci_softirq: driver softirq failed\n" );/* if next event would be in the past ... */ if ((s32)(hfc_jiffies + tics - jiffies) <=0 )
Signature · 1 line
1.7.9.3