diff --git a/services/src/init_reboot.c b/services/src/init_reboot.c index 76eb0f9cad2b014d56c708a02818dee336bd666b..e1b285c75754afa94029fb2db15dcb04bbc223b3 100644 --- a/services/src/init_reboot.c +++ b/services/src/init_reboot.c @@ -205,10 +205,9 @@ void DoReboot(const char *value) INIT_LOGE("DoReboot reboot value = %s, must started with reboot ,error.", value); return; } - if (valueData != NULL && - strncmp(valueData, "shutdown", strlen("shutdown")) != 0 && - strncmp(valueData, "updater:", strlen("updater:")) != 0 && - strncmp(valueData, "updater", strlen("updater")) != 0) { + if (valueData != NULL && strncmp(valueData, "shutdown", strlen("shutdown")) != 0 && + strncmp(valueData, "updater:", strlen("updater:")) != 0 && + strncmp(valueData, "updater", strlen("updater")) != 0) { INIT_LOGE("DoReboot value = %s, parameters error.", value); return; }