aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Penkler <dpenkler@gmail.com>2025-05-02 09:21:50 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2025-05-21 13:44:46 +0200
commite8186a376483edc9b0bac2a66f2f3b07fb005082 (patch)
treeada89e38d69abb3ded5eaa122e7e8102a9a2d3ff
parentstaging: gpib: Declare driver entry points static (diff)
downloadlinux-e8186a376483edc9b0bac2a66f2f3b07fb005082.tar.gz
linux-e8186a376483edc9b0bac2a66f2f3b07fb005082.zip
staging: gpib: Avoid unused variable warning
This addresses a warning produced by make W=1 with the configuration parameter CONFIG_GPIB_PCMCIA=y ines/ines_gpib.c:1115:28: warning: variable 'dev' set but not used [-Wunused-but-set-variable] Remove the declaration and assignment of the unused variable. Signed-off-by: Dave Penkler <dpenkler@gmail.com> Link: https://lore.kernel.org/r/20250502072150.32714-4-dpenkler@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/staging/gpib/ines/ines_gpib.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/staging/gpib/ines/ines_gpib.c b/drivers/staging/gpib/ines/ines_gpib.c
index a16219c0f7c8..c851fd014f48 100644
--- a/drivers/staging/gpib/ines/ines_gpib.c
+++ b/drivers/staging/gpib/ines/ines_gpib.c
@@ -1112,12 +1112,9 @@ static int ines_gpib_config_iteration(struct pcmcia_device *link, void *priv_dat
*/
static int ines_gpib_config(struct pcmcia_device *link)
{
- struct local_info *dev;
int retval;
void __iomem *virt;
- dev = link->priv;
-
retval = pcmcia_loop_config(link, &ines_gpib_config_iteration, NULL);
if (retval) {
dev_warn(&link->dev, "no configuration found\n");