diff options
| author | Jiri Olsa <[email protected]> | 2019-02-13 13:32:43 +0100 |
|---|---|---|
| committer | Arnaldo Carvalho de Melo <[email protected]> | 2019-02-14 15:18:09 -0300 |
| commit | a9aeb87b98badb55ec28dfcae8a8ce127d6208f5 (patch) | |
| tree | 0ce1e26c49c75c8b15ee6bfafb7def85e2730df5 | |
| parent | 33bbc571ed79cace481fae4031b80a51d93ae997 (diff) | |
perf header: Get rid of write_it label
Simplifying the code a bit.
Signed-off-by: Jiri Olsa <[email protected]>
Cc: Alexander Shishkin <[email protected]>
Cc: Namhyung Kim <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
| -rw-r--r-- | tools/perf/util/header.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/tools/perf/util/header.c b/tools/perf/util/header.c index dec6d218c31c..f1508adefc16 100644 --- a/tools/perf/util/header.c +++ b/tools/perf/util/header.c @@ -1042,11 +1042,9 @@ static int write_cpuid(struct feat_fd *ff, int ret; ret = get_cpuid(buffer, sizeof(buffer)); - if (!ret) - goto write_it; + if (ret) + return -1; - return -1; -write_it: return do_write_string(ff, buffer); } |