Commit dd7e2f22 authored by Michael Reed's avatar Michael Reed Committed by James Bottomley

[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: default avatarMichael Reed <mdr@sgi.com>
Signed-off-by: default avatarJames Bottomley <James.Bottomley@SteelEye.com>
parent 9e5c50fa
...@@ -487,7 +487,9 @@ EXPORT_SYMBOL(scsi_is_host_device); ...@@ -487,7 +487,9 @@ EXPORT_SYMBOL(scsi_is_host_device);
* @work: Work to queue for execution. * @work: Work to queue for execution.
* *
* Return value: * Return value:
* 0 on success / != 0 for error * 1 - work queued for execution
* 0 - work is already queued
* -EINVAL - work queue doesn't exist
**/ **/
int scsi_queue_work(struct Scsi_Host *shost, struct work_struct *work) int scsi_queue_work(struct Scsi_Host *shost, struct work_struct *work)
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment