]> www.infradead.org Git - users/jedix/linux-maple.git/commit
staging: gpib: ni_usb: remove unused variable
authorGaston Gonzalez <gascoar@gmail.com>
Fri, 14 Feb 2025 19:54:44 +0000 (16:54 -0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 19 Feb 2025 15:51:34 +0000 (16:51 +0100)
commita990ae96e6ef3e431a99b686fc174cd429d27288
treee7c16eccf7b94d957ae97fafe1a86f7ffdb805d7
parentc725363401e228986848c67579153dc259eccb4b
staging: gpib: ni_usb: remove unused variable

Remove unused variable 'adr1_bits' in function 'parse_board_ibrd_readback'

Since the value of the variable 'i' is increased when 'adr1_bits' is set, the
'i++' post-increment was added in order to keep the value of 'i' right.

This change removes the following warning:

warning: variable ‘adr1_bits’ 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-7-gascoar@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/gpib/ni_usb/ni_usb_gpib.c