fixed bug in probe that causes it to complain about 'Invalid irq configuration'
authorDavid Greenman <davidg@Root.COM>
Sat, 26 Jun 1993 02:32:26 +0000 (02:32 +0000)
committerDavid Greenman <davidg@Root.COM>
Sat, 26 Jun 1993 02:32:26 +0000 (02:32 +0000)
if the interface isn't present in the system.

sys/i386/isa/if_ed.c

index 697e4d0..4e6e110 100644 (file)
  * Modification history
  *
  * $Log:       if_ed.c,v $
  * Modification history
  *
  * $Log:       if_ed.c,v $
+ * Revision 1.10  93/06/25  19:23:19  davidg
+ * fixed bug that caused erroneous 'Invalid irq configuration' message when
+ * no board is present (during autoconfiguration).
+ * 
  * Revision 1.9  93/06/23  03:48:14  davidg
  * fixed minor typo introduced when cleaning up probe routine
  * 
  * Revision 1.9  93/06/23  03:48:14  davidg
  * fixed minor typo introduced when cleaning up probe routine
  * 
@@ -450,6 +454,8 @@ type_3Com:
                if (isa_dev->id_iobase != 0x2e0)
                        return(0);
                break;
                if (isa_dev->id_iobase != 0x2e0)
                        return(0);
                break;
+       default:
+               return(0);
        }
 
        /*
        }
 
        /*
@@ -473,6 +479,8 @@ type_3Com:
                if (kvtop(isa_dev->id_maddr) != ED_3COM_PCFR_C8000)
                        return(0);
                break;
                if (kvtop(isa_dev->id_maddr) != ED_3COM_PCFR_C8000)
                        return(0);
                break;
+       default:
+               return(0);
        }
 
        /*
        }
 
        /*