From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id B6199CD98F3 for ; Wed, 11 Oct 2023 06:41:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1697006467; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post; bh=GDu4dHc2qdIWX4QjUINTI8nxdGjd68jibh3/1T2CEUk=; b=U4WvR3JGiXDgUFADCt6jM6RSZQ0Ry2jivH5rWw7xMXbArQ9OzsJhw/1PlhVIhiDYEtRiaj dukLntwyxNlci93XG8cTDzfti5iC+BGP8D5XPSoUG9h6sD13LInfYIow85E2Y5TNnva8CH hp/lXNeVBdZrh8GOprmqNe8GKLdrk/g= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-29-MDvJj_90OIu0PmS5C9EIZg-1; Wed, 11 Oct 2023 02:40:59 -0400 X-MC-Unique: MDvJj_90OIu0PmS5C9EIZg-1 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.rdu2.redhat.com [10.11.54.3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 03751811E7D; Wed, 11 Oct 2023 06:40:59 +0000 (UTC) Received: from mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com [10.30.29.100]) by smtp.corp.redhat.com (Postfix) with ESMTP id 911E6111CD23; Wed, 11 Oct 2023 06:40:56 +0000 (UTC) Received: from mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (localhost [IPv6:::1]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id 23F2D19466DF; Wed, 11 Oct 2023 06:40:56 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.rdu2.redhat.com [10.11.54.7]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id 5A1B31946597 for ; Wed, 11 Oct 2023 06:34:19 +0000 (UTC) Received: by smtp.corp.redhat.com (Postfix) id 267B51C06533; Wed, 11 Oct 2023 06:34:19 +0000 (UTC) Received: from mimecast-mx02.redhat.com (mimecast05.extmail.prod.ext.rdu2.redhat.com [10.11.55.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 1E2801C060DF for ; Wed, 11 Oct 2023 06:34:19 +0000 (UTC) Received: from us-smtp-inbound-delivery-1.mimecast.com (us-smtp-delivery-1.mimecast.com [205.139.110.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 03EC48F5DA1 for ; Wed, 11 Oct 2023 06:34:19 +0000 (UTC) Received: from sin.source.kernel.org (sin.source.kernel.org [145.40.73.55]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-652-YyNZSlMwMN642_b3oifw4w-1; Wed, 11 Oct 2023 02:34:17 -0400 X-MC-Unique: YyNZSlMwMN642_b3oifw4w-1 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by sin.source.kernel.org (Postfix) with ESMTP id AAF62CE1AA9; Wed, 11 Oct 2023 06:24:17 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 70DBEC433C9; Wed, 11 Oct 2023 06:24:16 +0000 (UTC) Date: Wed, 11 Oct 2023 08:24:13 +0200 From: Greg KH To: Alexander Aring Message-ID: <2023101105-flashing-image-8778@gregkh> References: <20231010220448.2978176-1-aahringo@redhat.com> <20231010220448.2978176-3-aahringo@redhat.com> MIME-Version: 1.0 In-Reply-To: <20231010220448.2978176-3-aahringo@redhat.com> X-Mimecast-Impersonation-Protect: Policy=CLT - Impersonation Protection Definition; Similar Internal Domain=false; Similar Monitored External Domain=false; Custom External Domain=false; Mimecast External Domain=false; Newly Observed Domain=false; Internal User Name=false; Custom Display Name List=false; Reply-to Address Mismatch=false; Targeted Threat Dictionary=false; Mimecast Threat Dictionary=false; Custom Threat Dictionary=false X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.7 Subject: Re: [Cluster-devel] [PATCH RESEND 3/8] fs: dlm: Remove some useless memset() X-BeenThere: cluster-devel@redhat.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: "\[Cluster devel\]" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: cluster-devel@redhat.com, gfs2@lists.linux.dev, christophe.jaillet@wanadoo.fr, stable@vger.kernel.org Errors-To: cluster-devel-bounces@redhat.com Sender: "Cluster-devel" X-Scanned-By: MIMEDefang 3.1 on 10.11.54.3 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: linuxfoundation.org Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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 > ls_debug_rsb_dentry) > > So, save a few LoC. > > Signed-off-by: Christophe JAILLET > Signed-off-by: Alexander Aring > --- > fs/dlm/debug_fs.c | 5 ----- > 1 file changed, 5 deletions(-) This is not the correct way to submit patches for inclusion in the stable kernel tree. Please read: https://www.kernel.org/doc/html/latest/process/stable-kernel-rules.html for how to do this properly.