Pay attention to return value from xpt_bus_register in xpt_init.

Obtained from:	Xin Li (Coverity)
MFC after:	3 days
This commit is contained in:
Matt Jacob 2006-12-21 20:06:30 +00:00
parent 5288989fac
commit df82698084
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=165448

View file

@ -1446,7 +1446,11 @@ xpt_init(dummy)
devq); devq);
xpt_max_ccbs = 16; xpt_max_ccbs = 16;
xpt_bus_register(xpt_sim, /*bus #*/0); if ((status = xpt_bus_register(xpt_sim, /*bus #*/0)) != CAM_SUCCESS) {
printf("xpt_init: xpt_bus_register failed with status %#x,";
" failing attach\n", status);
return;
}
/* /*
* Looking at the XPT from the SIM layer, the XPT is * Looking at the XPT from the SIM layer, the XPT is