/* Return value: 1 - work queued for execution 0 - work is already queued -EINVAL - work queue doesn't exist  */
static int fc_queue_work(struct Scsi_Host *, struct work_struct *)
/* Return value: 1 - work queued for execution 0 - work is already queued -EINVAL - work queue doesn't exist  */
static int fc_queue_work(struct Scsi_Host *, struct work_struct *)
{
	if (unlikely(!fc_host_work_q(shost))) {
		printk(KERN_ERR
			"ERROR: FC host '%s' attempted to queue work, "
			"when no workqueue created.\n", shost->hostt->name);
		dump_stack();
		return -EINVAL;
	}
	return queue_work(fc_host_work_q(shost), work);
}