/* PARAMETER erp current erp_head RETURN VALUES erp new erp_head - pointer to new ERP  */
static struct dasd_ccw_req* dasd_3990_erp_env_data(struct dasd_ccw_req *erp, char *sense)
/* PARAMETER erp current erp_head RETURN VALUES erp new erp_head - pointer to new ERP  */
static struct dasd_ccw_req* dasd_3990_erp_env_data(struct dasd_ccw_req *erp, char *sense)
{
	struct dasd_device *device = erp->startdev;
	erp->function = dasd_3990_erp_env_data;
	DBF_DEV_EVENT(DBF_WARNING, device, "%s", "Environmental data present");
	dasd_3990_handle_env_data(erp, sense);
	if (sense[7] != 0x0F) {
		erp = dasd_3990_erp_action_4(erp, sense);
	} else {
		erp->status = DASD_CQR_FILLED;
	}
	return erp;
}