summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUnsung Lee <unsung.lee@samsung.com>2024-07-03 17:53:27 +0900
committerUnsung Lee <unsung.lee@samsung.com>2024-07-03 18:30:32 +0900
commit1e0ab6ac0c9f1eb559bb2027933a16384ad05deb (patch)
tree9ff1055e664d4990dbfcdf0068e5710fbd304404
parent58f17555f417bcba833fd62f87922a2e2abe1fef (diff)
downloadresourced-1e0ab6ac0c9f1eb559bb2027933a16384ad05deb.tar.gz
resourced-1e0ab6ac0c9f1eb559bb2027933a16384ad05deb.tar.bz2
resourced-1e0ab6ac0c9f1eb559bb2027933a16384ad05deb.zip
heart-abnormal: Remove unreachable code
Remove unreachable code (always return 0 in the callee). Change-Id: Id4257b8cd9b6b1f9c1410f1f6a72bc13eba6bdc7 Signed-off-by: Unsung Lee <unsung.lee@samsung.com>
-rw-r--r--src/resource-monitor/heart-abnormal.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/resource-monitor/heart-abnormal.c b/src/resource-monitor/heart-abnormal.c
index 59b75bd9..9ad09bfd 100644
--- a/src/resource-monitor/heart-abnormal.c
+++ b/src/resource-monitor/heart-abnormal.c
@@ -190,13 +190,11 @@ static int heart_abnormal_report_malfunction(char *name)
strftime(ts, TIME_MAX_LEN, "%Y.%m.%d-%H:%M:%S", &loc_tm);
snprintf(msgid, sizeof(msgid), "%s+%d", ts, milli);
- ret = d_bus_call_method_async_gvariant("org.tizen.system.crash", "/Org/Tizen/System/Crash/Crash", "org.tizen.system.crash.Crash",
+ d_bus_call_method_async_gvariant("org.tizen.system.crash", "/Org/Tizen/System/Crash/Crash", "org.tizen.system.crash.Crash",
"sluggish_dump",
g_variant_new("(iisss)", SLUG_TYPE_MALFUN, NOPID, name, timestr, msgid));
- if (ret < 0)
- _E("Malfunction reporting to sluggish tool failed");
- return ret;
+ return 0;
}
static void heart_abnormal_process_crashed(GVariant *params)