From: David Schleef Date: Thu, 5 Jul 2001 05:29:18 +0000 (+0000) Subject: Fix Oops when reporting 0 boards. X-Git-Tag: r0_7_60~99 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=810a7900a62f4ba1936cab791f2e9209ead396cf;p=comedi.git Fix Oops when reporting 0 boards. --- diff --git a/comedi/drivers/mite.c b/comedi/drivers/mite.c index f72168eb..c3746101 100644 --- a/comedi/drivers/mite.c +++ b/comedi/drivers/mite.c @@ -228,7 +228,7 @@ void mite_list_devices(void) struct mite_struct *mite,*next; printk("Available NI device IDs:"); - for(mite=mite_devices;mite;mite=next){ + if(mite_devices)for(mite=mite_devices;mite;mite=next){ next=mite->next; printk(" 0x%04x",mite_device_id(mite)); if(mite->used)printk("(used)");