EDAC/mc: Remove needless zero string termination
authorRobert Richter <rrichter@marvell.com>
Wed, 6 Nov 2019 09:33:11 +0000 (09:33 +0000)
committerBorislav Petkov <bp@suse.de>
Sun, 10 Nov 2019 11:40:14 +0000 (12:40 +0100)
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
drivers/edac/edac_mc.c

index 6b3c4a65c9c857e8caee58ca7814f90555bc124b..ab2b489788888d1a3794dbb00e4c645e88e1e5ea 100644 (file)
@@ -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