fix static check

Signed-off-by: yanghongliang <yang_hongliang@hoperun.com>
This commit is contained in:
yanghongliang
2021-12-15 11:39:15 +08:00
parent 647a0e8f6c
commit ebc31386ca
+2 -2
View File
@@ -47,9 +47,9 @@ static int main_cmd(int argc, char* argv[])
if (argc == REBOOT_CMD_NUMBER && strcmp(argv[1], "shutdown") != 0 &&
strcmp(argv[1], "updater") != 0 &&
strcmp(argv[1], "flashd") != 0 &&
#ifdef PRODUCT_RK
#ifdef PRODUCT_RK
strcmp(argv[1], "loader") !=0 &&
#endif
#endif
strncmp(argv[1], "updater:", strlen("updater:")) != 0 &&
strncmp(argv[1], "flashd:", strlen("flashd:")) != 0) {
printf("%s", USAGE_INFO);