Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp971604pxu; Mon, 23 Nov 2020 08:32:27 -0800 (PST) X-Google-Smtp-Source: ABdhPJyGZfDbUV77RPFbEL5yB4PyQsabbX8ClrvDMrVEZ0PDQR4U80ukqlJCNng627Tig50mqyKo X-Received: by 2002:a17:906:60c8:: with SMTP id f8mr448728ejk.14.1606149147008; Mon, 23 Nov 2020 08:32:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606149147; cv=none; d=google.com; s=arc-20160816; b=jVUqu+awJMnaPYwnvz1/rNZ4USEtjYtOBpMBDZUSXPvhT+zQNkw1InZ7YuvTjR9gQT F8S6AXS35KKfVC+OvUNskTx3npAdKqBnFK4ITqz78s63/GA9anmI5DCWdE9oCTBhBUq+ FFBi3v3PhK5NgpUAbKHJNvH0OYgHmtLYnOOxB6fVIeNIyCaVcQJ9MwVNePF7rCtVAGFJ Ig1eqF0mVp1DGPTQ1zXsI9SWSgVrDEPb1qO3xxq3xtyZ9nAD0Vgc9+40V3Wx4KZ8TT3z 4SnKLqkvcT+7RlZ0w/8k+CmDTbtJSvYgwSKsivHNH8DKYO7B78zTztNwmrpKss918MM1 uJ9w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=yaoJZoEVBYpM6WD6aCJwupRS15UUhu0CgUeEN6LjY6Y=; b=J/Nx/7YnSVFzbzgL4KTWEKj3GMdLzkb94JrxkaOkuH3i6kBgJj1pL2/nrBnYMo3cUF fuVtuWPkpO+xSaz/2L8ki86Ph2HyY9rApwFvqD4IEzH0pzTD974WJjsUJDTJCvYKaKe4 nu9jE2kGCsiQMFIkspivqHvRB1MhbI1VB3TEiafE+Dav5+OqZe2UGWjT9d2kdYmjBs4K 8tr7fekJMkppS9hnWjddeh2KD99xhCSSsFhsriuNDiemJxfcsvlHigWwrbmOzQMF1tQX 0XOfzx0+gGAx/e+1F06qc+IE/hcJQkg2uWJjMH5lpgzk+Gx1UUVm/2H1RmOFn2/cRxdx vA6A== ARC-Authentication-Results: i=1; mx.google.com; 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 dp16si1349607ejc.625.2020.11.23.08.32.04; Mon, 23 Nov 2020 08:32:26 -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; 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 S2389933AbgKWQak (ORCPT + 99 others); Mon, 23 Nov 2020 11:30:40 -0500 Received: from mail-wm1-f68.google.com ([209.85.128.68]:52002 "EHLO mail-wm1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732895AbgKWQaj (ORCPT ); Mon, 23 Nov 2020 11:30:39 -0500 Received: by mail-wm1-f68.google.com with SMTP id a186so15628747wme.1; Mon, 23 Nov 2020 08:30:38 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=yaoJZoEVBYpM6WD6aCJwupRS15UUhu0CgUeEN6LjY6Y=; b=GF/w6xqv5fBL7sp9j2VaIkjK/0M241qUuTl0AMWovyYw+YmO+EHnCNr8ZGxjpqroK/ woh99eUz/Qu5hOSpTeGFYI8DDsJpFRzk8QqSXS61dXLWu+JxVzT9eMjFHsWcKuaKPKDY bp4MiQF/WObvsK7niFpYDmEXtr+SKM54K/oLLHwoNYdJujIHIOpyTaWpLrRAB1s5uEcc hgn0sJ31YF6PXzmUmWwz1BbDFq54FmW6fjGOGFg9OcFBJfXXW3kpL+ru9t4mkHwSunTn kzz7PnK9Yt4Lt4Sq9Cs8KUhkAmtM2QldWtBpNw4vk9H/UyJI1O4tVerkN8r+rrEyteFk kU3w== X-Gm-Message-State: AOAM532D+2i/eN7AP4l6Vqj5+mSYYJG3cYo60LARUu+ut+c+SFoB0RIh sMzWDYhR0X4Q5WbWAwr8R9M= X-Received: by 2002:a1c:9949:: with SMTP id b70mr70849wme.85.1606149038123; Mon, 23 Nov 2020 08:30:38 -0800 (PST) Received: from kozik-lap (adsl-84-226-167-205.adslplus.ch. [84.226.167.205]) by smtp.googlemail.com with ESMTPSA id c4sm22151921wrd.30.2020.11.23.08.30.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 Nov 2020 08:30:36 -0800 (PST) Date: Mon, 23 Nov 2020 17:30:35 +0100 From: Krzysztof Kozlowski To: Nathan Chancellor Cc: Dmitry Osipenko , Thierry Reding , Jonathan Hunter , Nick Desaulniers , linux-kernel@vger.kernel.org, linux-tegra@vger.kernel.org, clang-built-linux@googlegroups.com Subject: Re: [PATCH] memory: tegra30-emc: Remove unnecessary of_node_put in tegra_emc_probe Message-ID: <20201123163035.GA209457@kozik-lap> References: <20201119195244.1517236-1-natechancellor@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20201119195244.1517236-1-natechancellor@gmail.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Nov 19, 2020 at 12:52:44PM -0700, Nathan Chancellor wrote: > Clang warns: > > drivers/memory/tegra/tegra30-emc.c:1275:15: warning: variable 'np' is > uninitialized when used here [-Wuninitialized] > of_node_put(np); > ^~ > drivers/memory/tegra/tegra30-emc.c:1269:24: note: initialize the > variable 'np' to silence this warning > struct device_node *np; > ^ > = NULL > 1 warning generated. > > There does not need to be an of_node_put call in this error handling > block after the shuffling of the np assignment. Remove it so there is > no use of uninitialized memory. > > Fixes: 5e00fd90183a ("memory: tegra30-emc: Continue probing if timings are missing in device-tree") > Link: https://github.com/ClangBuiltLinux/linux/issues/1203 > Signed-off-by: Nathan Chancellor > --- > drivers/memory/tegra/tegra30-emc.c | 4 +--- > 1 file changed, 1 insertion(+), 3 deletions(-) Thanks, applied. Best regards, Krzysztof