s390/dasd: replace PTR_RET with PTR_ERR_OR_ZERO
authorGustavo A. R. Silva <gustavo@embeddedor.com>
Thu, 19 Jul 2018 04:50:50 +0000 (23:50 -0500)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Thu, 19 Jul 2018 14:37:34 +0000 (16:37 +0200)
PTR_RET is deprecated, use PTR_ERR_OR_ZERO instead.

Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
drivers/s390/block/dasd_eckd.c

index bbf95b78ef5d9e4c5903e466e7de3f71b615c9ce..c5a55513b07c08f20c149acb0093377598cab24c 100644 (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(