Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp2084034pxb; Sat, 14 Nov 2020 12:40:42 -0800 (PST) X-Google-Smtp-Source: ABdhPJzk5/cZsJvBvYL2RJ2JW1rzM1nmTlY8n7a0mJgNdGS/d5aD3vc6dqNd010Z7UVP0t08kP5B X-Received: by 2002:a17:906:86cf:: with SMTP id j15mr8113955ejy.260.1605386442504; Sat, 14 Nov 2020 12:40:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605386442; cv=none; d=google.com; s=arc-20160816; b=L/jGFcjxB7xrKTpuSRJ6MlK9G7P+HvUZay/P2XfGbpazlqViShAsKyBoZx66aFM4JM s0RQYayJmVfwxZ27GKc8coOsOME+Q2BDd4UG2REM6OBCxkehfHrn2U06YNkNqkLYPnDu AhMb2NkaacO8xtcwXMG0Qmc65x7iC7sneKAGMmYMfVRGP7MsELlfn6WdgBDdJBzaM9iH 2wK9dHyqf/ncvMik5F1OW1nBtRIN0V3N+ViSol0+XPGoowoXTLUhc51ryNlZLV0Q/a1V fdLFq+yvLEn0XcdjB+1RkkDcPYuq99Zj8Dxig1rOTO/FxuVefwYuAyjPMnWeUK0ZY0cz UtRw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:message-id:date:to:cc:from:subject :references:in-reply-to:content-transfer-encoding:mime-version :dkim-signature; bh=GSpHPUG/BSS/ZauxmUvGhPKonrTo8nIVpj+x2HlJ4AQ=; b=KkbfXjV6k/sIdPKQNROot5cqqoM0owNUSOczj9rOwfayS38lTCU1XeoPCAWsG2BKti gjA59rGw23M4MForoy8X/m/dWzL9mAGdIvUp6EBsayBA3oVDaX2pRW3A471zFABDUfVP hnl4bXXJJhQQEdEV7OWKflykabbarNku3h/v1nWpu+F319NCMuOvWVa6G9n/Fhjs9Pr6 Oa1OZrIbxitHs9gFoSBd/TK4wXviE6SvMWp0Nkssdlxbu5izqSmNvEo/zryx1vBrSgvG pRg4nYoukK0GvwXRit6zZXQRohSTKbrdt8OeXZsiha5yo4dh31PRZ/DDczjjQQwq/zS/ q+8Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=k8qAnAzQ; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c17si8336564ejx.185.2020.11.14.12.39.39; Sat, 14 Nov 2020 12:40:42 -0800 (PST) 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=@kernel.org header.s=default header.b=k8qAnAzQ; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726176AbgKNUcg (ORCPT + 99 others); Sat, 14 Nov 2020 15:32:36 -0500 Received: from mail.kernel.org ([198.145.29.99]:33228 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726112AbgKNUcg (ORCPT ); Sat, 14 Nov 2020 15:32:36 -0500 Received: from kernel.org (unknown [104.132.1.79]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 9EDCA223EA; Sat, 14 Nov 2020 20:32:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1605385955; bh=uRosUtJJuCEP6nMWxQx1tCUp6FLcFxFLp8EIa+4Qbh0=; h=In-Reply-To:References:Subject:From:Cc:To:Date:From; b=k8qAnAzQ+2KiJp1+K0XMKsxv/0UQkcr9U9AJHotV5KORzpmTubxAgNxziGTGWZJM7 hDwU8UXBraY3OQAte4CpCEgwlnvK6djMMTyo9082NkS/nMvidmX8Xk5VCQ6I0HZgez ooKmyeRTWpmoW01fmAroEegkJeqXpobuSZlDUlr8= Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable In-Reply-To: <20201106094820.30167-1-lukas.bulwahn@gmail.com> References: <20201106094820.30167-1-lukas.bulwahn@gmail.com> Subject: Re: [PATCH] clk: remove unneeded dead-store initialization From: Stephen Boyd Cc: Tom Rix , Nathan Chancellor , Nick Desaulniers , clang-built-linux@googlegroups.com, kernel-janitors@vger.kernel.org, linux-safety@lists.elisa.tech, linux-kernel@vger.kernel.org, Lukas Bulwahn To: Lukas Bulwahn , Michael Turquette , linux-clk@vger.kernel.org Date: Sat, 14 Nov 2020 12:32:34 -0800 Message-ID: <160538595432.60232.9813667976586248163@swboyd.mtv.corp.google.com> User-Agent: alot/0.9.1 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Quoting Lukas Bulwahn (2020-11-06 01:48:20) > make clang-analyzer on x86_64 defconfig caught my attention with: >=20 > drivers/clk/clk.c:423:19: > warning: Value stored to 'parent' during its initialization is never re= ad > [clang-analyzer-deadcode.DeadStores] > struct clk_core *parent =3D ERR_PTR(-ENOENT); > ^ >=20 > Commit fc0c209c147f ("clk: Allow parents to be specified without string > names") introduced clk_core_fill_parent_index() with this unneeded > dead-store initialization. >=20 > So, simply remove this unneeded dead-store initialization to make > clang-analyzer happy. >=20 > As compilers will detect this unneeded assignment and optimize this anywa= y, > the resulting object code is identical before and after this change. >=20 > No functional change. No change to object code. >=20 > Signed-off-by: Lukas Bulwahn > --- Applied to clk-next