Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp52388pxb; Tue, 14 Sep 2021 18:24:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx1PTdKzoyuIzFCxNpG5Mmqh9/8QRnCpi8ypcsB7LcpS4t1zzXXZ4zdqGj1v1MVYVbHT1uF X-Received: by 2002:a92:dd03:: with SMTP id n3mr11880261ilm.76.1631669066819; Tue, 14 Sep 2021 18:24:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631669066; cv=none; d=google.com; s=arc-20160816; b=qbm7VnA5zF3iLs/ukkK807PH8Rb8HDrEPbDgLMkBN9Coy9WNw3euMg7AxeDTliL/JM KmT1AZBSHxxzXbIwwb7V/9tKsiarUi8sa5jlm/Tv/1qxndRIPFb8Odo6FVM7cDelRLAU u4nSNjuAnwp6SPlh1O4lTkllpA6W2q7p8LzZihRYsnTCPEhw/6GVTE0FZ6AkwRH8eOoV dIyBdV3lRNqD+CAFIhrRFzk3w48SuSmcj8sV75OHBxkT0uhoyZXfxUz+sxbXhbTEDcUx 1JdF+sXs4Fp4ZH0L6H+1GHTXmF2UqGpCdYVBHRQmAfjHKaVt5FM8Xt7aMt423pkfM119 Te8w== 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=E5DtuXDkIx/JZIO78nFiru8su07OSjoiOTQuZskOqv4=; b=YGDfSA0v2iN++7xydQdxIpxohKaHHWB1GFblhkxpVI0qBjhH4gY3pscUxK2BNd0Wj9 hGqqQbZsavlTlvJPXSOF00hl/uXn95yw0VToFsNvabTGTtfuvm7m5pWV3PQERaguL8sk fL8Mp7Is74cl+/Ly+1SSehGh9HetdVtQ9YWe3DL3/7M68asf3ozXbHTCTnC88Ze0IIQk xbUDHNxEfXqluRKnURnafjhdXim7PVCoaADmYzET7/9caO8QBxlCnov8PZfkXi6bKkXU e4x2CutpjKsGzUhF0wtaqGkpDzBMqwt5DQs+U3yi7AweHqL9h4IbnRM8xceJEd4ErA9R KtRw== 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 n10si11017867jaf.0.2021.09.14.18.24.14; Tue, 14 Sep 2021 18:24:26 -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 S231803AbhIOBYm (ORCPT + 99 others); Tue, 14 Sep 2021 21:24:42 -0400 Received: from mail-lj1-f169.google.com ([209.85.208.169]:39529 "EHLO mail-lj1-f169.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229548AbhIOBYm (ORCPT ); Tue, 14 Sep 2021 21:24:42 -0400 Received: by mail-lj1-f169.google.com with SMTP id q21so2184848ljj.6; Tue, 14 Sep 2021 18:23:23 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to; bh=E5DtuXDkIx/JZIO78nFiru8su07OSjoiOTQuZskOqv4=; b=lbSDgMaY7TeVevm/nbO17L8lRoj3s7WMprCxH/AETv/QDkkexROt5N+aXe8PshY9d0 aOTw2Yz81USy/ai870wUqGkOImHDW0eqj3kndIm5vFWHBYoKmsL+HLmF1t5PEWShFaWN U2Xjk4Z8A+TNAzYkM1GdkQN2NveqveAYCmOyx+g4YnRU2NGsfgspbBsvexP6pcqzGJOQ 9wXY5Ti8E53KcbaO4TTvfmzepYFb05ZJmVoJLgWWj/5mFTYcn7H94OIxVauQ0VITp4SL UQns4QQoyZQEKr9EzhhWrfwPxVpbP8vORqa4lW2zzBLNIO2jcKKq9ZGPMAW1Nh8fJBA9 BQnA== X-Gm-Message-State: AOAM533GOqU58+LofESTS5V7cjAkaskvS4yCZPZzlvbil4FlaLj+FoN5 ekcX4nM4b4wAqZXlTd+79+p18aK2KLFvDg== X-Received: by 2002:a2e:988f:: with SMTP id b15mr18426710ljj.454.1631669002597; Tue, 14 Sep 2021 18:23:22 -0700 (PDT) Received: from rocinante ([95.155.85.46]) by smtp.gmail.com with ESMTPSA id w9sm1621256ljo.36.2021.09.14.18.23.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 Sep 2021 18:23:21 -0700 (PDT) Date: Wed, 15 Sep 2021 03:23:20 +0200 From: Krzysztof =?utf-8?Q?Wilczy=C5=84ski?= To: Colin King Cc: Bjorn Helgaas , linux-pci@vger.kernel.org, kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] PCI: Remove redundant initialization of variable rc Message-ID: <20210915012320.GC1444093@rocinante> References: <20210910161417.91001-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: <20210910161417.91001-1-colin.king@canonical.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Colin, > The variable rc 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") > Signed-off-by: Colin Ian King > --- > drivers/pci/pci.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/pci/pci.c b/drivers/pci/pci.c > index ce2ab62b64cf..cd8cb94cc450 100644 > --- a/drivers/pci/pci.c > +++ b/drivers/pci/pci.c > @@ -5288,7 +5288,7 @@ const struct attribute_group pci_dev_reset_method_attr_group = { > */ > int __pci_reset_function_locked(struct pci_dev *dev) > { > - int i, m, rc = -ENOTTY; > + int i, m, rc; Thank you! Reviewed-by: Krzysztof WilczyƄski Krzysztof