10703 smatch unreachable code checking needs reworking Reviewed by: Toomas Soome <tsoome@me.com> Reviewed by: Yuri Pankov <yuri.pankov@nexenta.com>
@@ -928,11 +928,10 @@ wc_dev = sp->cons_wc_vp->v_rdev; if (ldi_open_by_dev(&wc_dev, OTYP_CHR, FREAD|FWRITE|FNOCTTY, kcred, &wc_lh, sp->cons_li)) { cmn_err(CE_PANIC, "cons_build_upper_layer: " "unable to open wc device"); - return; } ASSERT(wc_dev == sp->cons_wc_vp->v_rdev); strioc.ic_cmd = WC_OPEN_FB; strioc.ic_timout = INFTIM;