]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: cxlflash: Update cxlflash_afu_sync() to return errno
authorUma Krishnan <ukrishn@linux.vnet.ibm.com>
Thu, 22 Jun 2017 02:13:48 +0000 (21:13 -0500)
committerMartin K. Petersen <martin.petersen@oracle.com>
Mon, 26 Jun 2017 19:01:07 +0000 (15:01 -0400)
commitc026e0cfd5878f04c1f35869b021d06e724c1cf9
tree7304d15a56d7306b7664f6499ee3fe7acd977551
parentb2e447ae90c5517f06d9ada94cf202e37084b406
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