qla2xxx: Indicate out-of-memory with -ENOMEM
authorBart Van Assche <bart.vanassche@sandisk.com>
Wed, 30 Mar 2016 23:25:21 +0000 (16:25 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Mon, 11 Apr 2016 20:57:09 +0000 (16:57 -0400)
commit5cfe8d5b4c6f359a23738bbdc54a6007c6d6bdb1
treeda57947104a99bed60051252fde92907852c6bf0
parent62055172fbcd6055a10b010c6be65088fd7046b3
qla2xxx: Indicate out-of-memory with -ENOMEM

In the Linux kernel it is preferred to return a meaningful error code
instead of -1. This patch does not change the behavior of the caller of
qla82xx_pinit_from_rom().

Signed-off-by: Bart Van Assche <bart.vanassche@sandisk.com>
Cc: Quinn Tran <quinn.tran@qlogic.com>
Cc: Himanshu Madhani <himanshu.madhani@qlogic.com>
Cc: Christoph Hellwig <hch@lst.de>
Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>
Acked-by: Quinn Tran <quinn.tran@qlogic.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/qla2xxx/qla_nx.c