summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/exported-sql-viewer.py
diff options
context:
space:
mode:
authorRobert Richter <rrichter@marvell.com>2020-02-14 17:17:56 +0300
committerBorislav Petkov <bp@suse.de>2020-02-17 15:07:50 +0300
commit6334dc4e3ff53031a2d522b826c4fab92cfdea93 (patch)
tree640f3ffa04562aa12c27bd266d562fcf5d9bde4e /tools/perf/scripts/python/exported-sql-viewer.py
parent91b327f6728b0c4dfa089f11a474789854baa0b1 (diff)
downloadlinux-6334dc4e3ff53031a2d522b826c4fab92cfdea93.tar.xz
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 <rrichter@marvell.com> Signed-off-by: Borislav Petkov <bp@suse.de> Reviewed-by: Mauro Carvalho Chehab <mchehab@kernel.org> Acked-by: Aristeu Rozanski <aris@redhat.com> Link: https://lkml.kernel.org/r/20200214141757.8976-1-rrichter@marvell.com
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions