/* PARAMETER erp pointer to the currently created default ERP RETURN VALUES erp_new contens was possibly modified  */
static struct dasd_ccw_req* dasd_3990_erp_inspect(struct dasd_ccw_req *erp)
/* PARAMETER erp pointer to the currently created default ERP RETURN VALUES erp_new contens was possibly modified  */
static struct dasd_ccw_req* dasd_3990_erp_inspect(struct dasd_ccw_req *erp)
{
	struct dasd_ccw_req *erp_new = NULL;
	char *sense;
	erp_new = dasd_3990_erp_inspect_alias(erp);
	if (erp_new)
		return erp_new;
	sense = dasd_get_sense(&erp->refers->irb);
	if (!sense)
		erp_new = dasd_3990_erp_control_check(erp);
	else if (sense[27] & DASD_SENSE_BIT_0) {
		erp_new = dasd_3990_erp_inspect_24(erp, sense);
	} else {
		erp_new = dasd_3990_erp_inspect_32(erp, sense);
	}
	return erp_new;
}