handle potential null ptr

Noticed by:	Coverity Prevent analysis tool
This commit is contained in:
sam 2005-03-31 04:58:10 +00:00
parent 46b28f77bd
commit bccb3a4d86

View File

@ -1884,7 +1884,9 @@ amr_describe_controller(struct amr_softc *sc)
break;
}
} else {
prod = "unsupported controller";
device_printf(sc->amr_dev, "<unsupported controller>\n");
mtx_unlock(&sc->amr_io_lock);
return;
}
/*