From 52d0c5edc25b6dde8e8d5ce37a577aa5da69b16a Mon Sep 17 00:00:00 2001 From: xlei1030 Date: Thu, 31 Mar 2022 20:42:47 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=BC=96=E7=A0=81=E8=A7=84?= =?UTF-8?q?=E8=8C=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: xlei1030 --- services/param/service/param_service.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/services/param/service/param_service.c b/services/param/service/param_service.c index 542ae3260..e31d548a0 100755 --- a/services/param/service/param_service.c +++ b/services/param/service/param_service.c @@ -648,7 +648,7 @@ static int SnDealFun(const char* name, const char* value, int res) data[index] = '\0'; PARAM_LOGV("**** name %s, value %s", name, data); ret = WriteParam(&g_paramWorkSpace.paramSpace, name, data, NULL, 0); - PARAM_CHECK(ret == 0, free(data); + PARAM_CHECK(ret == 0, free(data); return ret, "Failed to write param %s %s", name, data); free(data); @@ -658,8 +658,7 @@ static int SnDealFun(const char* name, const char* value, int res) static int LoadParamFromCmdLine(void) { int ret; - static const cmdLineInfo cmdLines[] = { - { OHOS_BOOT"hardware", CommonDealFun }, + static const cmdLineInfo cmdLines[] = { {OHOS_BOOT"hardware", CommonDealFun}, { OHOS_BOOT"bootgroup", CommonDealFun }, { OHOS_BOOT"reboot_reason", CommonDealFun }, { OHOS_BOOT"sn", SnDealFun },