Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

perf header: Get rid of write_it label

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>

authored by

Jiri Olsa and committed by
Arnaldo Carvalho de Melo
a9aeb87b 33bbc571

+2 -4
+2 -4
tools/perf/util/header.c
··· 1042 1042 int ret; 1043 1043 1044 1044 ret = get_cpuid(buffer, sizeof(buffer)); 1045 - if (!ret) 1046 - goto write_it; 1045 + if (ret) 1046 + return -1; 1047 1047 1048 - return -1; 1049 - write_it: 1050 1048 return do_write_string(ff, buffer); 1051 1049 } 1052 1050