]> git.baikalelectronics.ru Git - kernel.git/commit
staging: kpc2000: fix error return code in kp2000_pcie_probe()
authorWei Yongjun <weiyongjun1@huawei.com>
Wed, 6 May 2020 13:47:35 +0000 (13:47 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 13 May 2020 12:00:20 +0000 (14:00 +0200)
commit6e96846df40b9574efd641c5a99868014d0eb726
tree5fc209f53dcb0c262641b7ac8e7d1d7df62b95af
parent8277a1075deebb892db94bab2ce18ec8bfe66b8e
staging: kpc2000: fix error return code in kp2000_pcie_probe()

Fix to return a negative error code from the error handling
case instead of 0, as done elsewhere in this function. Also
removed var 'rv' since we can use 'err' instead.

Fixes: a11bdb74a5f2 ("staging: kpc2000: add initial set of Daktronics drivers")
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Cc: stable <stable@vger.kernel.org>
Reviewed-by: Dan Carpenter <dan.carpenter@oracle.com>
Link: https://lore.kernel.org/r/20200506134735.102041-1-weiyongjun1@huawei.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/kpc2000/kpc2000/core.c