diff --git a/shell/full/src/base/show.c b/shell/full/src/base/show.c index e7eeae7e1585b9d76d14e2732a2ceae57d75f346..13ea08741e8e16e6a53cd0cd7e02332776c4b13c 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;