Print this page
10703 smatch unreachable code checking needs reworking
Reviewed by: Toomas Soome <tsoome@me.com>
Reviewed by: Yuri Pankov <yuri.pankov@nexenta.com>

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/io/consconfig_dacf.c
          +++ new/usr/src/uts/common/io/consconfig_dacf.c
↓ open down ↓ 922 lines elided ↑ open up ↑
 923  923          if (!sp->cons_tem_supported)
 924  924                  return;
 925  925  #endif /* _HAVE_TEM_FIRMWARE */
 926  926  
 927  927          /* tell wc to open the frame buffer device */
 928  928          wc_dev = sp->cons_wc_vp->v_rdev;
 929  929          if (ldi_open_by_dev(&wc_dev, OTYP_CHR, FREAD|FWRITE|FNOCTTY, kcred,
 930  930              &wc_lh, sp->cons_li)) {
 931  931                  cmn_err(CE_PANIC, "cons_build_upper_layer: "
 932  932                      "unable to open wc device");
 933      -                return;
 934  933          }
 935  934          ASSERT(wc_dev == sp->cons_wc_vp->v_rdev);
 936  935  
 937  936          strioc.ic_cmd = WC_OPEN_FB;
 938  937          strioc.ic_timout = INFTIM;
 939  938          strioc.ic_len = strlen(sp->cons_fb_path) + 1;
 940  939          strioc.ic_dp = sp->cons_fb_path;
 941  940  
 942  941          if (ldi_ioctl(wc_lh, I_STR, (intptr_t)&strioc,
 943  942              FKIOCTL, kcred, &rval) == 0)
↓ open down ↓ 1264 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX