diff options
author | Florian Mayer <fmayer@google.com> | 2019-10-10 18:14:44 +0100 |
---|---|---|
committer | Florian Mayer <fmayer@google.com> | 2019-10-10 18:15:24 +0100 |
commit | ad427b74c460470c1111645f55478090166ecb0d (patch) | |
tree | 195ddfece12cb68dc76a3216b07d9380fd98be1a /libcutils/trace-dev.cpp | |
parent | cad2fc24292f12ad7671659863001ad29da50b42 (diff) |
Remove useless goto.
Test: build
Change-Id: Ifb8d832de1115eefbf2e09c6d5c8f03244566933
Diffstat (limited to 'libcutils/trace-dev.cpp')
-rw-r--r-- | libcutils/trace-dev.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/libcutils/trace-dev.cpp b/libcutils/trace-dev.cpp index 4da821555..bff16c174 100644 --- a/libcutils/trace-dev.cpp +++ b/libcutils/trace-dev.cpp @@ -34,12 +34,9 @@ static void atrace_init_once() if (atrace_marker_fd == -1) { ALOGE("Error opening trace file: %s (%d)", strerror(errno), errno); atrace_enabled_tags = 0; - goto done; + } else { + atrace_enabled_tags = atrace_get_property(); } - - atrace_enabled_tags = atrace_get_property(); - -done: atomic_store_explicit(&atrace_is_ready, true, memory_order_release); } |