From: Gaston Gonzalez Date: Fri, 14 Feb 2025 19:54:42 +0000 (-0300) Subject: staging: gpib: eastwood: remove unused variable X-Git-Tag: v6.15-rc1~48^2~45 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c725363401e228986848c67579153dc259eccb4b;p=thirdparty%2Flinux.git staging: gpib: eastwood: remove unused variable Remove unused variable 'nec_priv' in function 'fluke_line_status'. This removes the following warning found compiling with W=1: warning: variable ‘nec_priv’ set but not used [-Wunused-but-set-variable] Signed-off-by: Gaston Gonzalez Reviewed-by: Dan Carpenter Link: https://lore.kernel.org/r/20250214195456.104075-5-gascoar@gmail.com Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/gpib/eastwood/fluke_gpib.c b/drivers/staging/gpib/eastwood/fluke_gpib.c index 012ce9cb89997..731732bd83012 100644 --- a/drivers/staging/gpib/eastwood/fluke_gpib.c +++ b/drivers/staging/gpib/eastwood/fluke_gpib.c @@ -198,10 +198,8 @@ static int fluke_line_status(const gpib_board_t *board) int status = ValidALL; int bsr_bits; struct fluke_priv *e_priv; - struct nec7210_priv *nec_priv; e_priv = board->private_data; - nec_priv = &e_priv->nec7210_priv; bsr_bits = fluke_paged_read_byte(e_priv, BUS_STATUS, BUS_STATUS_PAGE);