commit | ed6456afef0da57edfd87ce9142813d08a571137 | [log] [tgz] |
---|---|---|
author | Dan Carpenter <dan.carpenter@oracle.com> | Wed Jun 14 12:10:56 2017 +0300 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Wed Jun 14 12:43:54 2017 +0200 |
tree | 6e72930bc8f025aaeb6062028601a45d19b4de2d | |
parent | 64c667fe29ea697af0fce94857f26ae857951843 [diff] |
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>