]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
s390/dasd: Clarify comment
authorHannes Reinecke <hare@suse.de>
Wed, 30 Jan 2013 09:26:11 +0000 (09:26 +0000)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Mon, 1 Jul 2013 15:31:16 +0000 (17:31 +0200)
dasd_cancel_req will never return 1, only 0.

Signed-off-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Stefan Weinhuber <wein@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
drivers/s390/block/dasd.c

index d72a9216ee2e970d73a4758fbf1ccd1ccc366066..498548980d78967514866b624ce269290c97a030 100644 (file)
@@ -2402,8 +2402,7 @@ int dasd_sleep_on_immediatly(struct dasd_ccw_req *cqr)
  * Cancels a request that was started with dasd_sleep_on_req.
  * This is useful to timeout requests. The request will be
  * terminated if it is currently in i/o.
- * Returns 1 if the request has been terminated.
- *        0 if there was no need to terminate the request (not started yet)
+ * Returns 0 if request termination was successful
  *        negative error code if termination failed
  * Cancellation of a request is an asynchronous operation! The calling
  * function has to wait until the request is properly returned via callback.
@@ -2440,7 +2439,6 @@ int dasd_cancel_req(struct dasd_ccw_req *cqr)
        return rc;
 }
 
-
 /*
  * SECTION: Operations of the dasd_block layer.
  */