From: Robert Richter Date: Wed, 6 Nov 2019 09:33:11 +0000 (+0000) Subject: EDAC/mc: Remove needless zero string termination X-Git-Tag: v5.10.7~3845^2~11 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=47bec6b4c399fafbf984431c6a15baac06729829;p=platform%2Fkernel%2Flinux-rpi.git 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 Signed-off-by: Robert Richter Signed-off-by: Borislav Petkov Reviewed-by: Mauro Carvalho Chehab Cc: "linux-edac@vger.kernel.org" Cc: James Morse Cc: Tony Luck Link: https://lkml.kernel.org/r/20191106093239.25517-6-rrichter@marvell.com --- diff --git a/drivers/edac/edac_mc.c b/drivers/edac/edac_mc.c index 6b3c4a6..ab2b489 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