From 810a7900a62f4ba1936cab791f2e9209ead396cf Mon Sep 17 00:00:00 2001 From: David Schleef Date: Thu, 5 Jul 2001 05:29:18 +0000 Subject: [PATCH] Fix Oops when reporting 0 boards. --- comedi/drivers/mite.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)"); -- 2.26.2