Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp3645528pxb; Tue, 7 Sep 2021 04:35:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxX0xyoQsevn24UaUnUWAZNesw6eWCjONeZfxAshmw5rzJ523lwN4zgJQPgpGL/dJoxnOc+ X-Received: by 2002:a05:6e02:1074:: with SMTP id q20mr11855927ilj.204.1631014550282; Tue, 07 Sep 2021 04:35:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631014550; cv=none; d=google.com; s=arc-20160816; b=h9SwnvusyJcSSe0bHdxPCg+sDBCsEymySeQaOgo+uXqRudb5HAJ6gHGXX1IkiXEkIb y2s8DsB0ku5Q1tJ0PXZSNk6rvU+x5ZT67Nq3mMAs0wmoyEN/kdOQTNE+4ETN1RxEBYFZ y9JhQaU0/4ILFJxFVPnZK8MMRwWBZ4YDeYiQYe5jmnuMZ2hQw2SWK8dCNRRToVzlUZ5v 5M8g4DujXwqGX+541fWwmfB6VGq8N4md1xzDFBwaFcviSHaxcUjHUBRr79GpQQpNv1Em DVbryJbmXjj9CXXxjs8nJckLSuRI68h/XE4hnqT/lFED8B4Vcu3qcFr1eDRaVBvMe3n2 /nWg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=RD8ImtiPR0GJEKbytD1cXq/JGVHkX77jtTDQ9RdUdig=; b=SCxiqusm26n2cML76BWlBlp2xPXNyDSHqJLQxWznCW0g6KRBQ+vkcPzsnNvDOfbQz9 pMGCKslWJS5gthzRYBNy3WHYbc1xcMnjWO6dB7SA2RkNlYM2aC/rusnPMhR5XKP5Q3/p qzikwW6p6weRMvZfbJE79cAAS6lTSHKW1JLfR3yiHmgGSAmZdeAMrEzQPib3rwtlLoXH C8nRAQh3Bg9+2Wc/ma/k6SEBpdtZpRO1ZA0Uni4wavTFBWvdhlUDoJgaW00M1p92ngs3 eoqk2yfGFcX5T8ohqWHgBuOHtFTDp2ULZ0nLx6sYHm4CgYJEBndtF/4N+NlayUtnkzgc 5Dwg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@canonical.com header.s=20210705 header.b=BTyYN2sc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=canonical.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r13si10495179ilo.33.2021.09.07.04.35.38; Tue, 07 Sep 2021 04:35:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@canonical.com header.s=20210705 header.b=BTyYN2sc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=canonical.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1343565AbhIGLSR (ORCPT + 99 others); Tue, 7 Sep 2021 07:18:17 -0400 Received: from smtp-relay-canonical-1.canonical.com ([185.125.188.121]:39196 "EHLO smtp-relay-canonical-1.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244318AbhIGLSP (ORCPT ); Tue, 7 Sep 2021 07:18:15 -0400 Received: from [10.172.193.212] (1.general.cking.uk.vpn [10.172.193.212]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-canonical-1.canonical.com (Postfix) with ESMTPSA id 8ABB03F101; Tue, 7 Sep 2021 11:17:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1631013427; bh=RD8ImtiPR0GJEKbytD1cXq/JGVHkX77jtTDQ9RdUdig=; h=Subject:To:Cc:References:From:Message-ID:Date:MIME-Version: In-Reply-To:Content-Type; b=BTyYN2scPJVZWS/wrFi7/rvxH6QuisHSrmd+mLBL40ED+bhgVPYGkJWZ6huXm2mU4 NjJY9Ae5WyptAJT7wBIb6qDKU5fEyOtfrpZLykJAS4VR+eN2INEY5cVbvzs6zi86vs PnLdDOFW0PBn58tiSv0zDA993szwr3YyX3RwqEIM2kicml4+LK8hMmgoAzKrtmOCRk 4s5iLz9TFOXT5tE9DWM+6McaV6y1c+FHy5+GjgMPvrdTwwxYmaeUtqXPZo9jB0SKfm WDWF7emCz+cp+Dw1ZfRHzcMTXcTyQqSaiPohu2QZ8UmJwcvA5ALYRLkigP9PFt+ODL 5hzssrogdfP0g== Subject: NACK: [PATCH] EDAC/device: Remove redundant initialization of pointer dev_ctl To: Borislav Petkov Cc: Mauro Carvalho Chehab , Tony Luck , James Morse , Robert Richter , linux-edac@vger.kernel.org, kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org References: <20210907105913.15077-1-colin.king@canonical.com> From: Colin Ian King Message-ID: <14b02aa7-178b-2a03-afeb-a4c7be56d84f@canonical.com> Date: Tue, 7 Sep 2021 12:17:07 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 07/09/2021 12:11, Borislav Petkov wrote: > On Tue, Sep 07, 2021 at 11:59:13AM +0100, Colin King wrote: >> From: Colin Ian King >> >> The variable dev_ctl is being initialized with a value that is never >> read, it is being updated later on. The assignment is redundant and >> can be removed. >> >> Addresses-Coverity: ("Unused value") > > I'll never get a public reference to what those things mean, will I? > >> Signed-off-by: Colin Ian King >> --- >> drivers/edac/edac_device.c | 1 - >> 1 file changed, 1 deletion(-) >> >> diff --git a/drivers/edac/edac_device.c b/drivers/edac/edac_device.c >> index 8c4d947fb848..a337f7afc3b9 100644 >> --- a/drivers/edac/edac_device.c >> +++ b/drivers/edac/edac_device.c >> @@ -75,7 +75,6 @@ struct edac_device_ctl_info *edac_device_alloc_ctl_info( >> * provide if we could simply hardcode everything into a single struct. >> */ >> p = NULL; >> - dev_ctl = edac_align_ptr(&p, sizeof(*dev_ctl), 1); > > Are you absolutely sure this function doesn't have any side-effects, > say, to &p and removing the call would break the pointer offsets for the > one-shot allocation? Oops. brown-paper-bag on head. It does alter p. NACK. >