]> git.ipfire.org Git - thirdparty/linux.git/commit
staging: gpib: tnt4882: remove unused variable
authorGaston Gonzalez <gascoar@gmail.com>
Fri, 14 Feb 2025 19:54:46 +0000 (16:54 -0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 19 Feb 2025 15:51:34 +0000 (16:51 +0100)
commit1b268f7a47a46b46d09639902bd63c21d2a1fbb2
tree1a7b6ac9a467a7dab727a2c06865d2f0b40cb73e
parenta990ae96e6ef3e431a99b686fc174cd429d27288
staging: gpib: tnt4882: remove unused variable

Remove unused variable 'retval' in function 'tnt4882_update_status'.

A call to nec7210_update_status_nolock() is added as the status bits are written
to board->status in that function.

This change removes the following warning:

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