perf pmu: Fix misleadingly indented assignment (whitespace) 41/112141/1
authorMarkus Trippelsdorf <markus@trippelsdorf.de>
Mon, 14 Dec 2015 15:44:40 +0000 (16:44 +0100)
committerSeung-Woo Kim <sw0312.kim@samsung.com>
Thu, 26 Jan 2017 09:42:12 +0000 (18:42 +0900)
commite58705e97b4ee03256b5ad6556df8e4b9ec075b0
tree61d8a65c465712e8cf47afa4683fd0375629334c
parentc9ba05c775fdbcde6677022da83f5340e6f6c551
perf pmu: Fix misleadingly indented assignment (whitespace)

One line in perf_pmu__parse_unit() is indented wrongly, leading to a
warning (=> error) from gcc 6:

  util/pmu.c:156:3: error: statement is indented as if it were guarded by... [-Werror=misleading-indentation]

    sret = read(fd, alias->unit, UNIT_MAX_LEN);
    ^~~~

  util/pmu.c:153:2: note: ...this 'if' clause, but it is not
    if (fd == -1)
    ^~

Signed-off-by: Markus Trippelsdorf <markus@trippelsdorf.de>
Acked-by: Ingo Molnar <mingo@kernel.org>
Cc: Ben Hutchings <ben@decadent.org.uk>
Cc: Matt Fleming <matt@codeblueprint.co.uk>
Cc: Peter Zijlstra <peterz@infradead.org>
Fixes: 410136f5dd96 ("tools/perf/stat: Add event unit and scale support")
Link: http://lkml.kernel.org/r/20151214154440.GC1409@x4
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Change-Id: Ibc41cc944b70fb9e7b24cf06e2152fdee48fadf8
tools/perf/util/pmu.c