s390/dasd: replace PTR_RET with PTR_ERR_OR_ZERO

PTR_RET is deprecated, use PTR_ERR_OR_ZERO instead.

Signed-off-by: Gustavo A. R. Silva <[email protected]>
Signed-off-by: Martin Schwidefsky <[email protected]>
This commit is contained in:
Gustavo A. R. Silva 2018-07-18 23:50:50 -05:00 • committed by Martin Schwidefsky
commit 757853ea19

View file

@ -3535,7 +3535,7 @@ static int prepare_itcw(struct itcw *itcw,
dcw = itcw_add_dcw(itcw, pfx_cmd, 0,
&pfxdata, sizeof(pfxdata), total_data_size);
return PTR_RET(dcw);
return PTR_ERR_OR_ZERO(dcw);
}
static struct dasd_ccw_req *dasd_eckd_build_cp_tpm_track(