Commit 47bec6b4 authored by Robert Richter's avatar Robert Richter Committed by Borislav Petkov

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: default avatarJoe Perches <joe@perches.com>
Signed-off-by: default avatarRobert Richter <rrichter@marvell.com>
Signed-off-by: default avatarBorislav Petkov <bp@suse.de>
Reviewed-by: default avatarMauro 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
parent d260e8ff
...@@ -1184,7 +1184,6 @@ void edac_mc_handle_error(const enum hw_event_mc_err_type type, ...@@ -1184,7 +1184,6 @@ void edac_mc_handle_error(const enum hw_event_mc_err_type type,
} }
strcpy(p, dimm->label); strcpy(p, dimm->label);
p += strlen(p); p += strlen(p);
*p = '\0';
/* /*
* get csrow/channel of the DIMM, in order to allow * get csrow/channel of the DIMM, in order to allow
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment