1
0
Fork 0
alistair23-linux/drivers/staging/kpc2000/kpc2000
Wei Yongjun a41e02cb42 staging: kpc2000: fix error return code in kp2000_pcie_probe()
commit b17884ccf2 upstream.

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: 7dc7967fc3 ("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>
2020-05-27 17:46:45 +02:00
..
Makefile staging: kpc2000: remove fileops.c file. 2019-05-21 08:14:18 +02:00
cell_probe.c staging: kpc2000: Fix long constant sparse warning 2019-09-03 09:39:48 +02:00
core.c staging: kpc2000: fix error return code in kp2000_pcie_probe() 2020-05-27 17:46:45 +02:00
dma_common_defs.h staging: kpc2000: remove SetBackEndControl() function 2019-05-21 08:14:19 +02:00
pcie.h staging: kpc2000: Use '%llx' for printing 'long long int' type 2019-06-06 15:03:34 +02:00
uapi.h staging: kpc2000: fix coding style in uapi.h 2019-05-20 09:34:11 +02:00