summaryrefslogtreecommitdiff
path: root/drivers/edac/edac_mc_sysfs.c
diff options
context:
space:
mode:
authorRobert Richter <rrichter@marvell.com>2020-01-23 09:03:06 +0000
committerBorislav Petkov <bp@suse.de>2020-02-17 13:36:28 +0100
commit1853ee72997645e1aea85e20b94f7dcc55636887 (patch)
treea8dc08135014088ba45ad833524924e4c757ff6b /drivers/edac/edac_mc_sysfs.c
parent6ab76179adb82006aea05f438a0601561c162b8f (diff)
EDAC/mc: Remove detail[] string and cleanup error string generation
The error descriptor is passed to the error reporting functions, so the error details can be directly generated there. Move string generation from edac_raw_mc_handle_error() to edac_ce_error() and edac_ue_error(). The intermediate detail[] string can be removed then. Also, cleanup the string generation by switching to a single variant only using the ternary operator. [ bp: put ternary operators on a separate line for better readability and use the short-form "inline if" in edac_mc_handle_error(). ] Signed-off-by: Robert Richter <rrichter@marvell.com> Signed-off-by: Borislav Petkov <bp@suse.de> Acked-by: Aristeu Rozanski <aris@redhat.com> Link: https://lkml.kernel.org/r/20200123090210.26933-10-rrichter@marvell.com
Diffstat (limited to 'drivers/edac/edac_mc_sysfs.c')
0 files changed, 0 insertions, 0 deletions