diff options
author | Heiko Carstens <heiko.carstens@de.ibm.com> | 2012-09-06 09:13:34 -0400 |
---|---|---|
committer | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2012-09-26 09:45:14 -0400 |
commit | a8f6db4d2990d6866ba5d9c699cfc0835b9d8859 (patch) | |
tree | b04d475d2653063c8ac69d71e1e4731248d1b441 /drivers | |
parent | d06cbda69ffc89bdfcf4cb9d78b0e64c5c28e549 (diff) |
s390/etr,stp: use -EOPNOTSUPP instead of -ENOSYS
Change -ENOSYS to -EOPNOTSUPP. Return value is used only internally.
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/s390/block/dasd_eckd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/s390/block/dasd_eckd.c b/drivers/s390/block/dasd_eckd.c index ed03c22b215e..e1bb930124dd 100644 --- a/drivers/s390/block/dasd_eckd.c +++ b/drivers/s390/block/dasd_eckd.c | |||
@@ -211,7 +211,7 @@ check_XRC (struct ccw1 *de_ccw, | |||
211 | 211 | ||
212 | rc = get_sync_clock(&data->ep_sys_time); | 212 | rc = get_sync_clock(&data->ep_sys_time); |
213 | /* Ignore return code if sync clock is switched off. */ | 213 | /* Ignore return code if sync clock is switched off. */ |
214 | if (rc == -ENOSYS || rc == -EACCES) | 214 | if (rc == -EOPNOTSUPP || rc == -EACCES) |
215 | rc = 0; | 215 | rc = 0; |
216 | 216 | ||
217 | de_ccw->count = sizeof(struct DE_eckd_data); | 217 | de_ccw->count = sizeof(struct DE_eckd_data); |
@@ -322,7 +322,7 @@ static int check_XRC_on_prefix(struct PFX_eckd_data *pfxdata, | |||
322 | 322 | ||
323 | rc = get_sync_clock(&pfxdata->define_extent.ep_sys_time); | 323 | rc = get_sync_clock(&pfxdata->define_extent.ep_sys_time); |
324 | /* Ignore return code if sync clock is switched off. */ | 324 | /* Ignore return code if sync clock is switched off. */ |
325 | if (rc == -ENOSYS || rc == -EACCES) | 325 | if (rc == -EOPNOTSUPP || rc == -EACCES) |
326 | rc = 0; | 326 | rc = 0; |
327 | return rc; | 327 | return rc; |
328 | } | 328 | } |