2013-06-01 09:52:30

by Thomas Meyer

[permalink] [raw]
Subject: [PATCH] s390/dasd: Cocci spatch "ptr_ret.spatch"


Signed-off-by: Thomas Meyer <[email protected]>
---

diff -u -p a/drivers/s390/block/dasd_eckd.c b/drivers/s390/block/dasd_eckd.c
--- a/drivers/s390/block/dasd_eckd.c
+++ b/drivers/s390/block/dasd_eckd.c
@@ -2968,7 +2968,7 @@ static int prepare_itcw(struct itcw *itc

dcw = itcw_add_dcw(itcw, pfx_cmd, 0,
&pfxdata, sizeof(pfxdata), total_data_size);
- return IS_ERR(dcw) ? PTR_ERR(dcw) : 0;
+ return PTR_RET(dcw);
}

static struct dasd_ccw_req *dasd_eckd_build_cp_tpm_track(