mirror of
https://github.com/torvalds/linux.git
synced 2026-06-05 21:15:53 +02:00
staging: gpib: cb7210: remove unused variable
Remove unused variable 'nec_priv' in function 'cb7210_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 <gascoar@gmail.com> Reviewed-by: Dan Carpenter <dan.carpenter@linaro.org> Link: https://lore.kernel.org/r/20250214195456.104075-3-gascoar@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
3c9a0cf6a1
commit
99ed5f695f
|
|
@ -383,10 +383,8 @@ static int cb7210_line_status(const gpib_board_t *board)
|
|||
int status = ValidALL;
|
||||
int bsr_bits;
|
||||
struct cb7210_priv *cb_priv;
|
||||
struct nec7210_priv *nec_priv;
|
||||
|
||||
cb_priv = board->private_data;
|
||||
nec_priv = &cb_priv->nec7210_priv;
|
||||
|
||||
bsr_bits = cb7210_paged_read_byte(cb_priv, BUS_STATUS, BUS_STATUS_PAGE);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user