[sysprof] libsysprof: cleanup
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [sysprof] libsysprof: cleanup
- Date: Wed, 29 May 2019 22:20:29 +0000 (UTC)
commit 869755de16ce163ac0602228bc671ab69fcf637d
Author: Christian Hergert <chergert redhat com>
Date: Fri May 10 14:27:52 2019 -0700
libsysprof: cleanup
src/libsysprof/sysprof-perf-counter.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/src/libsysprof/sysprof-perf-counter.c b/src/libsysprof/sysprof-perf-counter.c
index d8e2a85..cb28207 100644
--- a/src/libsysprof/sysprof-perf-counter.c
+++ b/src/libsysprof/sysprof-perf-counter.c
@@ -432,10 +432,9 @@ sysprof_perf_counter_open (SysprofPerfCounter *self,
g_return_val_if_fail (group_fd >= -1, -1);
if (sysprof_helpers_perf_event_open (helpers, attr, pid, cpu, group_fd, flags, NULL, &out_fd, NULL))
- {
- }
+ return out_fd;
- return out_fd;
+ return -1;
}
void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]