From 3247d4f6510155c1dd703d4f6d91c5640e97cef1 Mon Sep 17 00:00:00 2001 From: Zbigniew Bodek Date: Tue, 27 Oct 2020 00:22:40 +0800 Subject: [PATCH] Fix build error due to "unequal" brackets For some reason more brackets is worse than no brackets and warning is generated that is threated as error. Therefore remove brackets to fix the build when LOSCFG_PLATFORM_ROOTFS is defined Signed-off-by: Zbigniew Bodek Change-Id: I610a5893217039a36d894641c54a83ff4d4b7822 --- shell/full/src/base/show.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/shell/full/src/base/show.c b/shell/full/src/base/show.c index 122c0480..e7eeae7e 100644 --- a/shell/full/src/base/show.c +++ b/shell/full/src/base/show.c @@ -100,14 +100,14 @@ STATIC UINT32 OsShellSourceInit(INT32 consoleId) ret = LOS_NOK; goto ERR_OUT4; } - if ((consoleId == CONSOLE_TELNET) + if (consoleId == CONSOLE_TELNET #if !defined(LOSCFG_PLATFORM_ROOTFS) /* * In case of ROOTFS disabled but * serial console enabled, it is required * to create Shell task in kernel for it. */ - || (consoleId == CONSOLE_SERIAL) + || consoleId == CONSOLE_SERIAL #endif ) { ret = OsShellCreateTask(shellCB); -- GitLab