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 769eb705f6
commit c981c7caa6

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;
}
/*