From 3cac7c61bb5cc91b8bb8496620cfc1145498002b Mon Sep 17 00:00:00 2001 From: Zbigniew Bodek Date: Thu, 31 Dec 2020 18:08:28 +0800 Subject: [PATCH] Apply post review fixes for style in shell Improve style of the ifdef in OsShellSourceInit(). Signed-off-by: Zbigniew Bodek Change-Id: I733423ce7e0d923702ea62f9e319a92525ebe161 --- shell/full/src/base/show.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/shell/full/src/base/show.c b/shell/full/src/base/show.c index e7eeae7e..13ea0874 100644 --- a/shell/full/src/base/show.c +++ b/shell/full/src/base/show.c @@ -100,16 +100,16 @@ STATIC UINT32 OsShellSourceInit(INT32 consoleId) ret = LOS_NOK; goto ERR_OUT4; } - 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 + /* + * In case of ROOTFS disabled but + * serial console enabled, it is required + * to create Shell task in kernel for it. + */ + if (consoleId == CONSOLE_TELNET || consoleId == CONSOLE_SERIAL) { +#else + if (consoleId == CONSOLE_TELNET) { #endif - ) { ret = OsShellCreateTask(shellCB); if (ret != LOS_OK) { goto ERR_OUT4; -- GitLab