From bb387301952b7ad4000e1f4241d332657ea647ef Mon Sep 17 00:00:00 2001 From: David Schleef Date: Mon, 8 Jul 2002 23:59:21 +0000 Subject: [PATCH] Remove bogus warning --- comedi/rt.c | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/comedi/rt.c b/comedi/rt.c index feab01b3..cec0bbfe 100644 --- a/comedi/rt.c +++ b/comedi/rt.c @@ -145,13 +145,10 @@ void comedi_switch_to_rt(comedi_device *dev) { struct comedi_irq_struct *it=comedi_irqs[dev->irq]; - // this prevents crashes with comedi_rt_timer - if(it == NULL){ - printk("BUG: comedi_switch_to_rt() called with bogus interrupt %d\n",dev->irq); - return; - } + /* drivers might not be using an interrupt for commands */ + if(it == NULL)return; - // rt interrupts and shared interrupts don't mix + /* rt interrupts and shared interrupts don't mix */ if(it->flags & SA_SHIRQ){ printk("comedi: cannot switch shared interrupt to real time priority\n"); return; @@ -174,11 +171,10 @@ void comedi_switch_to_non_rt(comedi_device *dev) { struct comedi_irq_struct *it=comedi_irqs[dev->irq]; - // this prevents crashes with comedi_rt_timer if(it == NULL) return; - // rt interrupts and shared interrupts don't mix + /* rt interrupts and shared interrupts don't mix */ if(it->flags & SA_SHIRQ) return; -- 2.26.2