lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <ZgumIQV3fUpxNqno@yilunxu-OptiPlex-7050>
Date: Tue, 2 Apr 2024 14:30:57 +0800
From: Xu Yilun <yilun.xu@...ux.intel.com>
To: Christophe JAILLET <christophe.jaillet@...adoo.fr>
Cc: Moritz Fischer <mdf@...nel.org>, Wu Hao <hao.wu@...el.com>,
	Xu Yilun <yilun.xu@...el.com>, Tom Rix <trix@...hat.com>,
	linux-kernel@...r.kernel.org, kernel-janitors@...r.kernel.org,
	linux-fpga@...r.kernel.org
Subject: Re: [PATCH] fpga: altera-cvp: Remove an unused field in struct
 altera_cvp_conf

On Mon, Apr 01, 2024 at 03:08:21PM +0200, Christophe JAILLET wrote:
> In "struct altera_cvp_conf", the 'mgr' field is unused.
> Remove it.
> 
> Found with cppcheck, unusedStructMember.
> 
> Signed-off-by: Christophe JAILLET <christophe.jaillet@...adoo.fr>

Acked-by: Xu Yilun <yilun.xu@...el.com>

Applied to for-next.

> ---
> 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
> 
> 

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ