diff mbox series

fpga: altera-cvp: Remove an unused field in struct altera_cvp_conf

Message ID 7986690e79fa6f7880bc1db783cb0e46a1c2723e.1711976883.git.christophe.jaillet@wanadoo.fr (mailing list archive)
State New
Headers show
Series fpga: altera-cvp: Remove an unused field in struct altera_cvp_conf | expand

Commit Message

Christophe JAILLET April 1, 2024, 1:08 p.m. UTC
In "struct altera_cvp_conf", the 'mgr' field is unused.
Remove it.

Found with cppcheck, unusedStructMember.

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
---
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(-)

Comments

Xu Yilun April 2, 2024, 6:30 a.m. UTC | #1
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@wanadoo.fr>

Acked-by: Xu Yilun <yilun.xu@intel.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
> 
>
diff mbox series

Patch

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,