* [S390] return 'count' for successful execution of dasd_eer_enable.
@ 2006-12-04 14:52 Martin Schwidefsky
0 siblings, 0 replies; only message in thread
From: Martin Schwidefsky @ 2006-12-04 14:52 UTC (permalink / raw)
To: linux-kernel, horst.hummel
From: Horst Hummel <horst.hummel@de.ibm.com>
[S390] return 'count' for successful execution of dasd_eer_enable.
Currently the return value of 'dasd_eer_enable' is returned - even if the
function returned '0'. Now return 'count' for successful execution.
Signed-off-by: Horst Hummel <horst.hummel@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
---
drivers/s390/block/dasd_devmap.c | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
diff -urpN linux-2.6/drivers/s390/block/dasd_devmap.c linux-2.6-patched/drivers/s390/block/dasd_devmap.c
--- linux-2.6/drivers/s390/block/dasd_devmap.c 2006-12-04 14:50:30.000000000 +0100
+++ linux-2.6-patched/drivers/s390/block/dasd_devmap.c 2006-12-04 14:50:44.000000000 +0100
@@ -877,12 +877,13 @@ dasd_eer_store(struct device *dev, struc
if (((endp + 1) < (buf + count)) || (val > 1))
return -EINVAL;
- rc = count;
- if (val)
+ if (val) {
rc = dasd_eer_enable(devmap->device);
- else
+ if (rc)
+ return rc;
+ } else
dasd_eer_disable(devmap->device);
- return rc;
+ return count;
}
static DEVICE_ATTR(eer_enabled, 0644, dasd_eer_show, dasd_eer_store);
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2006-12-04 14:53 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-12-04 14:52 [S390] return 'count' for successful execution of dasd_eer_enable Martin Schwidefsky
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox