From f11a44fc1343f00bb71a63485a5ded3634089e48 Mon Sep 17 00:00:00 2001 From: zhong_ning Date: Fri, 6 Aug 2021 21:44:05 +0800 Subject: [PATCH] fix code style Signed-off-by: zhong_ning --- services/src/init_reboot.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/services/src/init_reboot.c b/services/src/init_reboot.c index 76eb0f9c..e1b285c7 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; } -- GitLab