diff options
author | Heiko Carstens <heiko.carstens@de.ibm.com> | 2011-05-23 04:24:26 -0400 |
---|---|---|
committer | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2011-05-23 04:24:28 -0400 |
commit | 364c18d817a6beb3303e6b8f28ea37d9c06ff382 (patch) | |
tree | 6089e8ee580db186bdb6f20d813deea2e8c3874d /drivers/s390/block/dasd_eckd.c | |
parent | 7712f83aa904fef0d7d6e5ba7684c3272bddbb19 (diff) |
[S390] dasd: fix return code handling
Check return value of itcw_add_dcw() for error code and return it.
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'drivers/s390/block/dasd_eckd.c')
-rw-r--r-- | drivers/s390/block/dasd_eckd.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/s390/block/dasd_eckd.c b/drivers/s390/block/dasd_eckd.c index 58209434c992..30fb979d684d 100644 --- a/drivers/s390/block/dasd_eckd.c +++ b/drivers/s390/block/dasd_eckd.c | |||
@@ -2552,8 +2552,7 @@ static int prepare_itcw(struct itcw *itcw, | |||
2552 | 2552 | ||
2553 | dcw = itcw_add_dcw(itcw, pfx_cmd, 0, | 2553 | dcw = itcw_add_dcw(itcw, pfx_cmd, 0, |
2554 | &pfxdata, sizeof(pfxdata), total_data_size); | 2554 | &pfxdata, sizeof(pfxdata), total_data_size); |
2555 | 2555 | return IS_ERR(dcw) ? PTR_ERR(dcw) : 0; | |
2556 | return rc; | ||
2557 | } | 2556 | } |
2558 | 2557 | ||
2559 | static struct dasd_ccw_req *dasd_eckd_build_cp_tpm_track( | 2558 | static struct dasd_ccw_req *dasd_eckd_build_cp_tpm_track( |