Received: by 2002:ab2:3350:0:b0:1f4:6588:b3a7 with SMTP id o16csp23947lqe; Fri, 5 Apr 2024 11:18:47 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV4uYDZaG5xz4r4/kNfipMhQPn32Dqg7tZUg80OtbHLWz83t5KtPalgD8Sg7vQRMgr1rRiUlUxF9hghO2DQjSSs1veo0YDc/1uvXGSs7w== X-Google-Smtp-Source: AGHT+IGwZA3FBBRd3JEY8S/1xpx7k9zcvc8WBBSoV8L/HbVIdZdHi3BN4rHYGspM/4D/HZvQtAl3 X-Received: by 2002:a17:903:32d2:b0:1e0:9926:aded with SMTP id i18-20020a17090332d200b001e09926adedmr4173727plr.24.1712341127488; Fri, 05 Apr 2024 11:18:47 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712341127; cv=pass; d=google.com; s=arc-20160816; b=qBA0ztiEI0WhJs/Mfqd2i4G6bNdDHXST5xaY1A17z/INON1mpOPYL3woHP6ZpwY7Tk T1I34t7iTq5j4SCag46167ns/ZfLdKpDfKi3AxapB0XhrDe/TQwRnxhlPdK7ggJrVhOp MFhmSUJhxt3SvieXGIHViF7P13dfCoDUs6u/GTIHxFLMoKI7mygyQieOvACdEGkzVD/f 4nF8ni+U8IXBFk9Lmk05pSEVFKMAgnGhqVefaUq8i0XdNOXMc6eGGlKw+HBB8pH0Bixv sRkg+vppjznllL/oaXUT0ifIlyTO6waF9Jv2RdBwBFbsNKBcghLNQcZS+6+qehIewqEK roTQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=CBOkN9rmFPDZtUIpA+M9rXhLCZmZnPuzbOdFADzAiHU=; fh=wigDlscqtXd+++4CtXjPQd/BtSUlN55f0XHqPouorks=; b=eeAQHyirjO9nPGCzmZ3tKZJbsxJAPE3QEepoZXcXSBeIh56MvW9L5BRrxVzyGgBqMk zcUQ3Ga01SNFgNtesQdRHNlhdOBH0pORPI66hYzyeG11EVTyh9Udv9j++F/k+DCZsDbw zL76Za6DrL25DHBR/1BSeQkQ2fyFWbpK7orgRSSF7xYayEoq2Zavq41gLQsVJlah4FB2 OKTMRY1IjFO/Yh5IsS8KjoVDI+frg3lz87wlmE5ysh6qk/OcWKxxR5QALdcEJ+6j6f42 kNtdBDGBSx0AwQqLsevk4SdHfkxvXQ5eO4AjjmGb8k37b1YzUg288zmtz+SERozWNZ4O XbmA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@wanadoo.fr header.s=t20230301 header.b=lkTgAZOC; arc=pass (i=1 spf=pass spfdomain=wanadoo.fr dkim=pass dkdomain=wanadoo.fr dmarc=pass fromdomain=wanadoo.fr); spf=pass (google.com: domain of linux-kernel+bounces-133460-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-133460-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=wanadoo.fr Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id q20-20020a656854000000b005e84998d26dsi1777805pgt.867.2024.04.05.11.18.46 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Apr 2024 11:18:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-133460-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@wanadoo.fr header.s=t20230301 header.b=lkTgAZOC; arc=pass (i=1 spf=pass spfdomain=wanadoo.fr dkim=pass dkdomain=wanadoo.fr dmarc=pass fromdomain=wanadoo.fr); spf=pass (google.com: domain of linux-kernel+bounces-133460-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-133460-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=wanadoo.fr Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 1D42FB21301 for ; Fri, 5 Apr 2024 18:18:46 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id ED88A17279D; Fri, 5 Apr 2024 18:18:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=wanadoo.fr header.i=@wanadoo.fr header.b="lkTgAZOC" Received: from msa.smtpout.orange.fr (msa-213.smtpout.orange.fr [193.252.23.213]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9B0BC17277E; Fri, 5 Apr 2024 18:18:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.252.23.213 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712341103; cv=none; b=N4mYQfwxE4ql/UFPnBUMx/l1iPM0nzTwvAJconZ2LkHIJ1c0Hou8grae224g9ya2NW4aXJWAC0Cn3pmXQB6eRyzeEgQYtxJTzdS8ouAOGIJYxYaSeoNtmRHkkt4fTE42RW4b9phuqpJNyxWCT572Q0/KoTilOlEhFUlDutINc0Q= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712341103; c=relaxed/simple; bh=cvs/43SwtLRtedcsO543rgUvMrFflja1dGXNQx9R344=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=CJPgNLkb2Dn1CV4p1WCwHCbGSc6TCY++D2ffXiOEl//avpCIWR9DmE3HHQOK89jH98qdWR6g1gMv1GlCR/7a3LrIM2BOAiBl68csoO/dk78FTJgZgsRzkZhSF+RU1PLVe4RMaaitte1HP9xcN6aWpH8HmGLw0wj75Pd5DMecwd8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=wanadoo.fr; spf=pass smtp.mailfrom=wanadoo.fr; dkim=pass (2048-bit key) header.d=wanadoo.fr header.i=@wanadoo.fr header.b=lkTgAZOC; arc=none smtp.client-ip=193.252.23.213 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=wanadoo.fr Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=wanadoo.fr Received: from fedora.home ([86.243.17.157]) by smtp.orange.fr with ESMTPA id so7frCyNy41mCso7gr3bZJ; Fri, 05 Apr 2024 20:17:08 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wanadoo.fr; s=t20230301; t=1712341028; bh=CBOkN9rmFPDZtUIpA+M9rXhLCZmZnPuzbOdFADzAiHU=; h=From:To:Subject:Date:Message-ID:MIME-Version; b=lkTgAZOCcEfDQ6oFnLdPtpbDX3pQNJE5xRzadS8UtdiIVUW+JpWKdYOywrEp0LFns 1M8+YXAffelLS48FIErg2gSVHJS+vxT6xtJfEF1OEIOQ3gPk4IYsAZEYkTo0HTr7cE 7LT1vBFXD97HtS5IVWNigCSzRk9OBpRSmOPvsTfs9ok8+JQQSCt6togt8evYjq0LsT jkdxr5HXJH2VQKEXwbuHRyMXWKL4VVlJ9TWkpytUrdSiVMJBTWxVgjxve2TsA5QRsK cCqp7kPNj4FYzNODtt8cF9vi/SnH9G8nvFEYlBSC9v+8x+ZHHhkWAoRatIb3jlwR2V Rk0Vvb+rxDpQA== X-ME-Helo: fedora.home X-ME-Auth: Y2hyaXN0b3BoZS5qYWlsbGV0QHdhbmFkb28uZnI= X-ME-Date: Fri, 05 Apr 2024 20:17:08 +0200 X-ME-IP: 86.243.17.157 From: Christophe JAILLET To: Manivannan Sadhasivam , =?UTF-8?q?Krzysztof=20Wilczy=C5=84ski?= , Kishon Vijay Abraham I , Bjorn Helgaas Cc: linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org, Christophe JAILLET , linux-pci@vger.kernel.org Subject: [PATCH] PCI: endpoint: Remove some unused fields in struct pci_epf_group Date: Fri, 5 Apr 2024 20:16:59 +0200 Message-ID: <6507d44b6c60a19af35a605e2d58050be8872ab6.1712341008.git.christophe.jaillet@wanadoo.fr> X-Mailer: git-send-email 2.44.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit In "struct pci_epf_group", the 'type_group' field is unused. This was added, but already unused, by commit 70b3740f2c19 ("PCI: endpoint: Automatically create a function specific attributes group") Remove it. Found with cppcheck, unusedStructMember. Signed-off-by: Christophe JAILLET --- Compile tested only. --- drivers/pci/endpoint/pci-ep-cfs.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/pci/endpoint/pci-ep-cfs.c b/drivers/pci/endpoint/pci-ep-cfs.c index 0ea64e24ed61..ad4e2e329ae9 100644 --- a/drivers/pci/endpoint/pci-ep-cfs.c +++ b/drivers/pci/endpoint/pci-ep-cfs.c @@ -23,7 +23,6 @@ struct pci_epf_group { struct config_group group; struct config_group primary_epc_group; struct config_group secondary_epc_group; - struct config_group *type_group; struct delayed_work cfs_work; struct pci_epf *epf; int index; -- 2.44.0