[PATCH v2 5/5] staging: gpib: ines: remove unused variable

Gaston Gonzalez
2025-02-14T19:56:49Z

Remove unused variable 'nec_priv' in function 'ines_line_status'.

This change removes the following warning:

warning: variable ‘nec_priv’ set but not used [-Wunused-but-set-variable]

Signed-off-by: Gaston Gonzalez <gascoar@gmail.com>
---
v2: no changes in this patch.

drivers/staging/gpib/ines/ines_gpib.c | 2 --
1 file changed, 2 deletions(-)

diff --git a/drivers/staging/gpib/ines/ines_gpib.c b/drivers/staging/gpib/ines/ines_gpib.c
index 22a05a287bce..ba07dfb0697a 100644
--- a/drivers/staging/gpib/ines/ines_gpib.c
+++ b/drivers/staging/gpib/ines/ines_gpib.c
@@ -26,10 +26,8 @@ int ines_line_status(const gpib_board_t *board)
int status = ValidALL;
int bcm_bits;
struct ines_priv *ines_priv;
- struct nec7210_priv *nec_priv;

ines_priv = board->private_data;
- nec_priv = &ines_priv->nec7210_priv;

bcm_bits = ines_inb(ines_priv, BUS_CONTROL_MONITOR);

--
2.48.1