Received: by 2002:ab2:1149:0:b0:1f3:1f8c:d0c6 with SMTP id z9csp1421635lqz; Mon, 1 Apr 2024 06:08:42 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXk3jRV1NV0uCqUjEz6PcG+e8e5bBOL3txZW3fzCwU0DbAD+2OBgNrMFGLxpWQ+YXLUUI23Epn/qUikeijVEMfI2kl/D6nd/nhiGqvfyg== X-Google-Smtp-Source: AGHT+IGd3AsVKaEYb/DXRCxpm4aJKh1LLczla8Jxdtd7hYTK6mTMxpAx8i9XzSt0dUV+mjBLa4IQ X-Received: by 2002:a05:6a20:549e:b0:1a3:c4f4:5bb3 with SMTP id i30-20020a056a20549e00b001a3c4f45bb3mr9237458pzk.4.1711976922051; Mon, 01 Apr 2024 06:08:42 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711976922; cv=pass; d=google.com; s=arc-20160816; b=fDtf1A5AwlCxFz1Gy6aUcSOXH7t8w3pMbTZvdgZeBqXY8K3Y43wLxG8Wp08zEUU09C FRyvimjJg3SIIPbHok3n/MTiNdmHthszsccEQm+CaSJhBnqu6iMwCDbd8/bm4/PNt1kf qsFc59womp3dJZaXFucyR8ZYuH5sky1gTcK1EaPlbm8lKt0kg5j8CCJZIJwPfU3Jh2Yr ZRdBuRTG5D/ncEOFzECD8pJJ/G4i+C4RnwL9XlBuNiVuhwyFZtTZNiv9QhC+NkUpSFOX LcJ1s/NU6wOfPi/Kky5mwAX8Uw7Qt5aeNFC2FOz9o1Gv7BA2crhhBk7a7KJAAvwG+gIa GoOg== 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=98Z2FPBJRx39uUlwlsoLLukd26uFSpPNJzTdkcV+H8w=; fh=3wAFhgkBiQqa0Slw+K7to2jDoupMtts1HNw2dCamfVY=; b=wfTJXrXDBkRvMoE7yzUEcg0cl2s8CK2AsQbOqRxhn5Y9EXHRfT2M6bgF8PdqUE5ycN 5M6LPoLGtX4J4qABvxt/EgT7ISrN9tUGubyNePA9kMxoO9G2vxoGPDcHWTiBAJ3gDG6j T7ZRL2sRhcWH9SxL0luxNyKKikTLpXBEXDd5LbzOgO7ZVU28CC5cu+v7ZFV1PLLspDpc TPqV8lVef84BZDm2BNRtzwm3ltGz2tcBgR9imTY95kLCB3EpFzUDTgzUQdEQw4SjYz1x OAFJooPeczWR6dJcdxYmj+bo/ocDKSwBTYw2g6vtHu2lzOa0L0e8dM3mbZkT/mPp60ss FDZg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@wanadoo.fr header.s=t20230301 header.b=gKtEF0Vm; 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-126668-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-126668-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=wanadoo.fr Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id m18-20020a17090aab1200b002a2414f39efsi1090783pjq.0.2024.04.01.06.08.41 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 01 Apr 2024 06:08:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-126668-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@wanadoo.fr header.s=t20230301 header.b=gKtEF0Vm; 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-126668-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-126668-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 7F1B8281F5A for ; Mon, 1 Apr 2024 13:08:40 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3A0DE3F8C2; Mon, 1 Apr 2024 13:08:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=wanadoo.fr header.i=@wanadoo.fr header.b="gKtEF0Vm" Received: from msa.smtpout.orange.fr (msa-209.smtpout.orange.fr [193.252.23.209]) (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 7AC72383BA; Mon, 1 Apr 2024 13:08:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.252.23.209 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711976911; cv=none; b=UEdUH/Zu68KanzNjSc6dY9ZxPmnJooV5HvVMUIuRCbpzKzTbr4aSbPB9g6Su3EoLYS5n5yKgfK7SG9FG6id/QetcuvKEu/BXHtNWCRQS6Dk2XfB/x4SHb53WNPQslN0zhi/mze7Rj2Mxcuw/2jyMAGe6TbOwQguTRUsu/N4+rPA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711976911; c=relaxed/simple; bh=3j7ZintJt6IY5YGQgufV4/rhKwMzKzmHz80qDoMWNpw=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=ASQf53s+6DkcTkkPOQU7xjkL4aIturJuSZGCDxf8KZia1kFovQbXwUrF4F+E9Wk/8Pi68YQ91liWyCz03RGiHFW6SU10oyGdU+bYw3SOeHDztqNDd8aVLcQ8sXeEN2WEvzc7QXYhj+43DJsEPkrkzMfNHH4PKMvD2ykmEQPpd/k= 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=gKtEF0Vm; arc=none smtp.client-ip=193.252.23.209 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 rHOirI9t6uWdGrHOirOs7H; Mon, 01 Apr 2024 15:08:26 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wanadoo.fr; s=t20230301; t=1711976906; bh=98Z2FPBJRx39uUlwlsoLLukd26uFSpPNJzTdkcV+H8w=; h=From:To:Subject:Date:Message-ID:MIME-Version; b=gKtEF0Vm22hOmvVP8w6nKcQh5fM++77MKgJMF9Kn/o4hD9TNHriG3fQoUlowHZAHJ NC7HGj449Mwrhz6bFSTkQCeObs7suwY6heb8Myi68AYHyFT+BE0HZBXaCID9uW8KO7 0BlTf4PgYxGFhUzKatCX00j2qZ0tLmuPmw5MjXVzw9Ah1C5TrSXy1lVyFhrcE/ihiH bbV/CsipxrgwoY443nyTUVWMOz2heEJSZNtbmYV95/IooilM647eM+YCo9y/8M82mV dVFQfsNonO2xFXqyNgWSI3AT5jmRYpg+wkT8bBZ1AJCgJCMtOz/NsH06r8EvVnUC0o kQ+5itbwPD8ng== X-ME-Helo: fedora.home X-ME-Auth: Y2hyaXN0b3BoZS5qYWlsbGV0QHdhbmFkb28uZnI= X-ME-Date: Mon, 01 Apr 2024 15:08:26 +0200 X-ME-IP: 86.243.17.157 From: Christophe JAILLET To: Moritz Fischer , Wu Hao , Xu Yilun , Tom Rix Cc: linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org, Christophe JAILLET , linux-fpga@vger.kernel.org Subject: [PATCH] fpga: altera-cvp: Remove an unused field in struct altera_cvp_conf Date: Mon, 1 Apr 2024 15:08:21 +0200 Message-ID: <7986690e79fa6f7880bc1db783cb0e46a1c2723e.1711976883.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 altera_cvp_conf", the 'mgr' field is unused. Remove it. Found with cppcheck, unusedStructMember. Signed-off-by: Christophe JAILLET --- Apparently, it has never been used. It is not a left-over from a refactoring. The address of the 'fpga_manager' is handled via pci_[s|g]et_drvdata(). Compile tested only. --- drivers/fpga/altera-cvp.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/fpga/altera-cvp.c b/drivers/fpga/altera-cvp.c index 4ffb9da537d8..6b0914432445 100644 --- a/drivers/fpga/altera-cvp.c +++ b/drivers/fpga/altera-cvp.c @@ -72,7 +72,6 @@ static bool altera_cvp_chkcfg; struct cvp_priv; struct altera_cvp_conf { - struct fpga_manager *mgr; struct pci_dev *pci_dev; void __iomem *map; void (*write_data)(struct altera_cvp_conf *conf, -- 2.44.0