Commit a9aeb87b authored by Jiri Olsa's avatar Jiri Olsa Committed by Arnaldo Carvalho de Melo

perf header: Get rid of write_it label

Simplifying the code a bit.
Signed-off-by: default avatarJiri 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.orgSigned-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
parent 33bbc571
...@@ -1042,11 +1042,9 @@ static int write_cpuid(struct feat_fd *ff, ...@@ -1042,11 +1042,9 @@ static int write_cpuid(struct feat_fd *ff,
int ret; int ret;
ret = get_cpuid(buffer, sizeof(buffer)); ret = get_cpuid(buffer, sizeof(buffer));
if (!ret) if (ret)
goto write_it;
return -1; return -1;
write_it:
return do_write_string(ff, buffer); return do_write_string(ff, buffer);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment