staging: unisys: visorhba change -1 return value

This patch changes the vague -1 return value to -EBUSY

Signed-off-by: Erik Arfvidson <erik.arfvidson@unisys.com>
Signed-off-by: David Kershner <david.kershner@unisys.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Erik Arfvidson 2016-05-13 23:17:18 -04:00 коммит произвёл Greg Kroah-Hartman
Родитель 2efffad314
Коммит ba78c4707c
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -184,7 +184,7 @@ static void visor_thread_stop(struct task_struct *task)
* Partition so that it can be handled when it completes. If new is * Partition so that it can be handled when it completes. If new is
* NULL it is assumed the entry refers only to the cmdrsp. * NULL it is assumed the entry refers only to the cmdrsp.
* Returns insert_location where entry was added, * Returns insert_location where entry was added,
* SCSI_MLQUEUE_DEVICE_BUSY if it can't * -EBUSY if it can't
*/ */
static int add_scsipending_entry(struct visorhba_devdata *devdata, static int add_scsipending_entry(struct visorhba_devdata *devdata,
char cmdtype, void *new) char cmdtype, void *new)
@ -199,7 +199,7 @@ static int add_scsipending_entry(struct visorhba_devdata *devdata,
insert_location = (insert_location + 1) % MAX_PENDING_REQUESTS; insert_location = (insert_location + 1) % MAX_PENDING_REQUESTS;
if (insert_location == (int)devdata->nextinsert) { if (insert_location == (int)devdata->nextinsert) {
spin_unlock_irqrestore(&devdata->privlock, flags); spin_unlock_irqrestore(&devdata->privlock, flags);
return -1; return -EBUSY;
} }
} }