提交 f11a44fc 编写于 作者: Z zhong_ning

fix code style

Signed-off-by: Nzhong_ning <zhong_ning@hoperun.com>
上级 b5a18fbe
......@@ -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;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册