Skip to content

Commit

Permalink
perf header: Get rid of write_it label
Browse files Browse the repository at this point in the history
Simplifying the code a bit.

Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/r/20190213123246.4015-8-jolsa@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
  • Loading branch information
Jiri Olsa authored and Arnaldo Carvalho de Melo committed Feb 14, 2019
1 parent 33bbc57 commit a9aeb87
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions tools/perf/util/header.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit a9aeb87

Please sign in to comment.