hisi_acc_vfio_pci: update function return values.
authorLongfang Liu <liulongfang@huawei.com>
Sat, 10 May 2025 08:11:55 +0000 (16:11 +0800)
committerAlex Williamson <alex.williamson@redhat.com>
Mon, 19 May 2025 18:41:31 +0000 (12:41 -0600)
commit1dcf2cf102d72e0bbf0d7533756c9a0ccb6e91d3
treee8033837312d1c387b92f346aa85e15b95e45334
parent2777a40998deb36f96b6afc48bd397cf58a4edf0
hisi_acc_vfio_pci: update function return values.

In this driver file, many functions call sub-functions and use ret
to store the error code of the sub-functions.
However, instead of directly returning ret to the caller, they use a
converted error code, which prevents the end-user from clearly
understanding the root cause of the error.
Therefore, the code needs to be modified to directly return the error
code from the sub-functions.

Signed-off-by: Longfang Liu <liulongfang@huawei.com>
Reviewed-by: Shameer Kolothum <shameerali.kolothum.thodi@huawei.com>
Link: https://lore.kernel.org/r/20250510081155.55840-7-liulongfang@huawei.com
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
drivers/vfio/pci/hisilicon/hisi_acc_vfio_pci.c