aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/hosts.c
diff options
context:
space:
mode:
authorMichael Reed <mdr@sgi.com>2006-08-04 13:09:24 -0400
committerJames Bottomley <jejb@mulgrave.il.steeleye.com>2006-08-06 12:36:23 -0400
commitdd7e2f2266acf66ec882baa6fbd79f853b5fe966 (patch)
tree1bfcc0c3e31c08d7a82cf88f6ae48e30298bebdb /drivers/scsi/hosts.c
parent9e5c50fa8686ede7c37b939a0b950df50346eb3d (diff)
[SCSI] scsi_queue_work() documented return value is incorrect
If you examine the queue_work() routine you'll see that it returns 1 on success, 0 if the work is already queued. This patch corrects the source code documentation for the scsi_queue_work function. Signed-off-by: Michael Reed <mdr@sgi.com> Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Diffstat (limited to 'drivers/scsi/hosts.c')
-rw-r--r--drivers/scsi/hosts.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/scsi/hosts.c b/drivers/scsi/hosts.c
index dfcb96f3e60c..f244d4f6597a 100644
--- a/drivers/scsi/hosts.c
+++ b/drivers/scsi/hosts.c
@@ -487,7 +487,9 @@ EXPORT_SYMBOL(scsi_is_host_device);
487 * @work: Work to queue for execution. 487 * @work: Work to queue for execution.
488 * 488 *
489 * Return value: 489 * Return value:
490 * 0 on success / != 0 for error 490 * 1 - work queued for execution
491 * 0 - work is already queued
492 * -EINVAL - work queue doesn't exist
491 **/ 493 **/
492int scsi_queue_work(struct Scsi_Host *shost, struct work_struct *work) 494int scsi_queue_work(struct Scsi_Host *shost, struct work_struct *work)
493{ 495{