Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp1796321pxf; Fri, 26 Mar 2021 15:18:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzZaPizxYUVp7W6N2FFss7HBY8LVzLMQ/rjhYz/MSMpIhcQ6MwKOq9yQ+bcUEFAa5vnGHp1 X-Received: by 2002:a17:906:abcd:: with SMTP id kq13mr17914865ejb.477.1616797124305; Fri, 26 Mar 2021 15:18:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616797124; cv=none; d=google.com; s=arc-20160816; b=XjUZC8oulwlr7J7HpGnxnorBnfDZBlfbGlhmbNcnlvJW2Xc6AKqGpBAFARtkUHvAxa WwVCXvKF4dSwlumnJYJ1cfi557x91umYKZwEknb329/HuySOLRDFSWntexYZkoBv82H9 gmSfYq8/FJ904pAXQPjFqwERiMRVfoKkV6lghCPB9KFwOkgx1/jFrV5TM4MxJAI0ZCqB vuIwboPo2ZaAY6yW9+4DZhaBaOm8iJy3rcOtY1jDaDxcFuV7RIEevNQTiUTRi68K9pJd CQ7mBvN52LzDG3MvuhFhRNGZZKGw1xlmigfQRSoXNml6f571Vxm+Tdvc7jk1RAQbyiA+ j80w== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=quVE0WXN2dW3u57qVidMnV0S6DB+ccRjTK3ulEhufMY=; b=IM1T3+3vuqQo5xsjIy5MKTpg+0BcwOKqq/TQymLBBehRxufYR0KKgBPdqf6Tq8xbHC X5pX6DpczNkykmDVZt4Nu0MOEI9ZeVIcaSqVX9VF7Op5h/PFxm+pCL24NoegC63lx26U yeBGjXm4E7D8y+3JKxH35Yaph7SIjCE7qdBtImM8GrdBB4948chHLTfgJ8snyGsdv9dR OHdrHJdUHXZPEgo2mLF8VN9VM8gJ3RZgAg2J7xoENSyntdOcwNVQ+/hT2Bl8uO+Wh0iZ rkcvruI64SKbsNMxPi39zP2tFvSAPCP9sd7JMxJf1SumQb/tDaDD5qv9CkG50jt9XP5M A1CA== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bf4si7473043edb.291.2021.03.26.15.18.22; Fri, 26 Mar 2021 15:18:44 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230482AbhCZWP1 (ORCPT + 99 others); Fri, 26 Mar 2021 18:15:27 -0400 Received: from mail-wm1-f52.google.com ([209.85.128.52]:41506 "EHLO mail-wm1-f52.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230202AbhCZWPR (ORCPT ); Fri, 26 Mar 2021 18:15:17 -0400 Received: by mail-wm1-f52.google.com with SMTP id t5-20020a1c77050000b029010e62cea9deso3742396wmi.0; Fri, 26 Mar 2021 15:15:16 -0700 (PDT) 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:content-transfer-encoding :in-reply-to; bh=quVE0WXN2dW3u57qVidMnV0S6DB+ccRjTK3ulEhufMY=; b=AHnh5zExfyYh53uct4ePYJiX+Wg1eUXhG1ftOhOu0ASa/ibpTkLsAcJYHi3BqNR5Ij 1cWzUQ/NDV86jkvPJSdgjRVb4tzZ9dfPeRK8VtWLVqGO4QHUMxl2hpRbXxbueJiIq+2t YOtJ4OnRd75jIoyM/iGdnij7rsIOsKwiJvVWLmCtSdKKMKkHhuZ1AANreGTYkw96oJIG V7cZKXdNeMZf84Kwvo14tg6xzx66XuCP3j8Vsmn9PRa/w5iEzb7OOQqjZvTyK5plgt3d sLMFIjcv+RPCc7q/bdvIhoHbCmWMXPZ+OMB8N6o446oBIpl+9FzSTaPiK8EUcSVQvWpi FtGQ== X-Gm-Message-State: AOAM531wv5s5yMWmYywixBxWIWr4reQjH2H8KYhgwIwX3kJHzc0BFNZP G10gnGVmJxVUjaVRL3cH3NI= X-Received: by 2002:a05:600c:224e:: with SMTP id a14mr14685630wmm.57.1616796916105; Fri, 26 Mar 2021 15:15:16 -0700 (PDT) Received: from rocinante ([95.155.85.46]) by smtp.gmail.com with ESMTPSA id o2sm4441658wmr.10.2021.03.26.15.15.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 26 Mar 2021 15:15:15 -0700 (PDT) Date: Fri, 26 Mar 2021 23:15:14 +0100 From: Krzysztof =?utf-8?Q?Wilczy=C5=84ski?= To: Colin King Cc: Kishon Vijay Abraham I , Lorenzo Pieralisi , Bjorn Helgaas , linux-pci@vger.kernel.org, kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] PCI: endpoint: remove redundant initialization of pointer dev Message-ID: References: <20210326190909.622369-1-colin.king@canonical.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20210326190909.622369-1-colin.king@canonical.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Colin, > The pointer dev is being initialized with a value that is > never read and it is being updated later with a new value. The > initialization is redundant and can be removed. [...] > - struct device *dev = epf->epc->dev.parent; > + struct device *dev; > struct pci_epf_bar *epf_bar; > struct pci_epc *epc; Thank you! Reviewed-by: Krzysztof WilczyƄski Krzysztof