Re: [Cluster-devel] [PATCH RESEND 3/8] fs: dlm: Remove some useless memset()

2023-10-10 Thread Greg KH
On Tue, Oct 10, 2023 at 06:04:43PM -0400, Alexander Aring wrote: > From: Christophe JAILLET > > There is no need to clear the buffer used to build the file name. > > snprintf() already guarantees that it is NULL terminated and such a > (useless) precaution was not done for the first string (i.e

[Cluster-devel] [PATCH RESEND 3/8] fs: dlm: Remove some useless memset()

2023-10-10 Thread Alexander Aring
From: Christophe JAILLET There is no need to clear the buffer used to build the file name. snprintf() already guarantees that it is NULL terminated and such a (useless) precaution was not done for the first string (i.e ls_debug_rsb_dentry) So, save a few LoC. Signed-off-by: Christophe JAILLET