提交 3247d4f6 编写于 作者: Z Zbigniew Bodek 提交者: Wojciech Zmuda WX948747

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: NZbigniew Bodek <zbigniew.bodek@huawei.com>
Change-Id: I610a5893217039a36d894641c54a83ff4d4b7822
上级 5400ef18
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册