summaryrefslogtreecommitdiffstats
path: root/drivers/edac/edac_mc.c
diff options
context:
space:
mode:
authorRobert Richter <rrichter@marvell.com>2019-11-06 10:33:11 +0100
committerBorislav Petkov <bp@suse.de>2019-11-10 12:40:14 +0100
commit47bec6b4c399fafbf984431c6a15baac06729829 (patch)
tree3258df325af19f004977b30d02701178ec8b7cb7 /drivers/edac/edac_mc.c
parentEDAC/mc: Do not BUG_ON() in edac_mc_alloc() (diff)
downloadlinux-47bec6b4c399fafbf984431c6a15baac06729829.tar.xz
linux-47bec6b4c399fafbf984431c6a15baac06729829.zip
EDAC/mc: Remove needless zero string termination
The e string to which this is pointing to has already been cleared earlier in the function so remove the needless zero string termination. [ bp: Correct the commit message. ] Suggested-by: Joe Perches <joe@perches.com> Signed-off-by: Robert Richter <rrichter@marvell.com> Signed-off-by: Borislav Petkov <bp@suse.de> Reviewed-by: Mauro Carvalho Chehab <mchehab@kernel.org> Cc: "linux-edac@vger.kernel.org" <linux-edac@vger.kernel.org> Cc: James Morse <james.morse@arm.com> Cc: Tony Luck <tony.luck@intel.com> Link: https://lkml.kernel.org/r/20191106093239.25517-6-rrichter@marvell.com
Diffstat (limited to 'drivers/edac/edac_mc.c')
-rw-r--r--drivers/edac/edac_mc.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/edac/edac_mc.c b/drivers/edac/edac_mc.c
index 6b3c4a65c9c8..ab2b48978888 100644
--- a/drivers/edac/edac_mc.c
+++ b/drivers/edac/edac_mc.c
@@ -1184,7 +1184,6 @@ void edac_mc_handle_error(const enum hw_event_mc_err_type type,
}
strcpy(p, dimm->label);
p += strlen(p);
- *p = '\0';
/*
* get csrow/channel of the DIMM, in order to allow