scsi: cxlflash: Update cxlflash_afu_sync() to return errno
commit539d890cecee6b5d7304914afc51b7f53150163d
authorUma Krishnan <ukrishn@linux.vnet.ibm.com>
Thu, 22 Jun 2017 02:13:48 +0000 (21 21:13 -0500)
committerMartin K. Petersen <martin.petersen@oracle.com>
Mon, 26 Jun 2017 19:01:07 +0000 (26 15:01 -0400)
tree7304d15a56d7306b7664f6499ee3fe7acd977551
parent66ea9bcc392017b6df465b6f5847f6eac966a801
scsi: cxlflash: Update cxlflash_afu_sync() to return errno

The cxlflash_afu_sync() routine returns a negative one to indicate any kind
of failure. This makes it impossible to establish why the error occurred.

Update the return codes to clearly indicate the failure cause to the
caller.

Signed-off-by: Uma Krishnan <ukrishn@linux.vnet.ibm.com>
Acked-by: Matthew R. Ochs <mrochs@linux.vnet.ibm.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/cxlflash/main.c