aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/util/trace-event-scripting.c
diff options
context:
space:
mode:
authorRobert Richter <[email protected]>2020-02-14 15:17:56 +0100
committerBorislav Petkov <[email protected]>2020-02-17 13:07:50 +0100
commit6334dc4e3ff53031a2d522b826c4fab92cfdea93 (patch)
tree640f3ffa04562aa12c27bd266d562fcf5d9bde4e /tools/perf/util/trace-event-scripting.c
parent91b327f6728b0c4dfa089f11a474789854baa0b1 (diff)
EDAC/mc: Carve out error increment into a separate function
Carve out the error_count increment into a separate function edac_inc_csrow(). This better separates code and reduces the indentation level. Implementation note: The function edac_inc_csrow() counts the same as before, ->ce_count is only incremented if row >= 0. This is esp. true for the case of (!e->enable_per_layer_report). Here, a DIMM was not found, variable row still has a value of -1 and ->ce_count is not incremented. [ bp: Massage commit message. ] Signed-off-by: Robert Richter <[email protected]> Signed-off-by: Borislav Petkov <[email protected]> Reviewed-by: Mauro Carvalho Chehab <[email protected]> Acked-by: Aristeu Rozanski <[email protected]> Link: https://lkml.kernel.org/r/[email protected]
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions