]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
Staging: rtl8723bs: fix an error code in isFileReadable()
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 14 Jun 2017 09:10:56 +0000 (12:10 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 14 Jun 2017 10:43:54 +0000 (12:43 +0200)
commited6456afef0da57edfd87ce9142813d08a571137
tree6e72930bc8f025aaeb6062028601a45d19b4de2d
parent64c667fe29ea697af0fce94857f26ae857951843
Staging: rtl8723bs: fix an error code in isFileReadable()

The caller only cares about zero vs non-zero so this code actually works
fine but we should be returning a negative error code instead of a valid
pointer casted to int.

Fixes: 554c0a3abf21 ("staging: Add rtl8723bs sdio wifi driver")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723bs/os_dep/osdep_service.c