Skip to contentSkip to conversation

Fixed misleading error when handling IR interrupts.

PATCH New Luis Alves 1 participant 1 message Jul 11, 2013 Media (V4L/DVB)

lore
Share & tools
lore

Luis Alves

author
#0 lore raw

PATCH 1/1 Fixed misleading error when handling IR interrupts.

Hi,
Handling the AV Core/IR interrupts schedules its workqueue but the schedule_work function returns false if @work was already on the kernel-global workqueue and true otherwise.

Printing an error message if @work wasn't in the queue is wrong.

Regards,
Luis

---
 drivers/media/pci/cx23885/cx23885-core.c |    5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)
drivers/media/pci/cx23885/cx23885-core.c +1 -4
index 268654a..9f63d93 100644
@@ -1941,10 +1941,7 @@ static irqreturn_t cx23885_irq(int irq, void *dev_id)
 
 	if ((pci_status & pci_mask) & PCI_MSK_AV_CORE) {
 		cx23885_irq_disable(dev, PCI_MSK_AV_CORE);
-		if (!schedule_work(&dev->cx25840_work))
-			printk(KERN_ERR "%s: failed to set up deferred work for"
-			       " AV Core/IR interrupt. Interrupt is disabled"
-			       " and won't be re-enabled\n", dev->name);
+		schedule_work(&dev->cx25840_work);
 		handled++;
 	}
 
Signature · 1 line
1.7.9.5