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 <zbigniew.bodek@huawei.com>
Change-Id: I610a5893217039a36d894641c54a83ff4d4b7822
This commit is contained in:
Zbigniew Bodek 2020-10-27 00:22:40 +08:00 committed by Wojciech Zmuda WX948747
parent 5400ef180a
commit 3247d4f651
1 changed files with 2 additions and 2 deletions

View File

@ -100,14 +100,14 @@ STATIC UINT32 OsShellSourceInit(INT32 consoleId)
ret = LOS_NOK; ret = LOS_NOK;
goto ERR_OUT4; goto ERR_OUT4;
} }
if ((consoleId == CONSOLE_TELNET) if (consoleId == CONSOLE_TELNET
#if !defined(LOSCFG_PLATFORM_ROOTFS) #if !defined(LOSCFG_PLATFORM_ROOTFS)
/* /*
* In case of ROOTFS disabled but * In case of ROOTFS disabled but
* serial console enabled, it is required * serial console enabled, it is required
* to create Shell task in kernel for it. * to create Shell task in kernel for it.
*/ */
|| (consoleId == CONSOLE_SERIAL) || consoleId == CONSOLE_SERIAL
#endif #endif
) { ) {
ret = OsShellCreateTask(shellCB); ret = OsShellCreateTask(shellCB);