]> 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)
commitb34f8640df2d3126b179c8042d0ff6007cef778a
tree7304d15a56d7306b7664f6499ee3fe7acd977551
parent4a9baf70316d81e8d7887ec51cfdd4900d8af1b6
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