From: Guilherme Tadashi Maeoka Date: Sat, 9 Mar 2019 18:30:43 +0000 (-0300) Subject: staging: rtl8723bs: os_dep: Fix assignment in if condition X-Git-Tag: v5.4-rc1~1076^2~396 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=cbc570a769e063703274d40147db836fddd3aae1;p=platform%2Fkernel%2Flinux-rpi.git staging: rtl8723bs: os_dep: Fix assignment in if condition Fix an assignment in if condition. Signed-off-by: Guilherme Tadashi Maeoka Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/rtl8723bs/os_dep/osdep_service.c b/drivers/staging/rtl8723bs/os_dep/osdep_service.c index 4378827243f0..1e289c45d26a 100644 --- a/drivers/staging/rtl8723bs/os_dep/osdep_service.c +++ b/drivers/staging/rtl8723bs/os_dep/osdep_service.c @@ -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);