staging: rtl8723bs: os_dep: Fix assignment in if condition

Fix an assignment in if condition.

Signed-off-by: Guilherme Tadashi Maeoka <gui.maeoka@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Guilherme Tadashi Maeoka
2019-03-09 15:30:43 -03:00
committed by Greg Kroah-Hartman
parent 93f6bc735f
commit cbc570a769

View File

@@ -155,7 +155,9 @@ static int retriveFromFile(char *path, u8 *buf, u32 sz)
struct file *fp;
if (path && buf) {
if (0 == (ret =openFile(&fp, path, O_RDONLY, 0))) {
ret = openFile(&fp, path, O_RDONLY, 0);
if (ret == 0) {
DBG_871X("%s openFile path:%s fp =%p\n", __func__, path , fp);
ret =readFile(fp, buf, sz);