[<prev] [next>] [day] [month] [year] [list]
Message-Id: <20211204101531.3924430-1-alb3rt0.m3rciai@gmail.com>
Date: Sat, 4 Dec 2021 11:15:28 +0100
From: Alberto Merciai <alb3rt0.m3rciai@...il.com>
To: alb3rt0.m3rciai@...il.com
Cc: Forest Bond <forest@...ttletooquiet.net>,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
Tommaso Merciai <tomm.merciai@...il.com>,
Dan Carpenter <dan.carpenter@...cle.com>,
Karolina Drobnik <karolinadrobnik@...il.com>,
Aldas Taraškevičius <aldas60@...il.com>,
Lucas Henneman <lucas.henneman@...aro.org>,
linux-staging@...ts.linux.dev, linux-kernel@...r.kernel.org
Subject: [PATCH] staging: vt6655: remove unused variable byMaxChannel
Remove set but not used variable byMaxChannel.
Signed-off-by: Alberto Merciai <alb3rt0.m3rciai@...il.com>
---
drivers/staging/vt6655/device.h | 1 -
drivers/staging/vt6655/device_main.c | 1 -
2 files changed, 2 deletions(-)
diff --git a/drivers/staging/vt6655/device.h b/drivers/staging/vt6655/device.h
index 245f992e5a23..bf2698056c55 100644
--- a/drivers/staging/vt6655/device.h
+++ b/drivers/staging/vt6655/device.h
@@ -201,7 +201,6 @@ struct vnt_private {
unsigned char byTopCCKBasicRate;
unsigned char byMinChannel;
- unsigned char byMaxChannel;
unsigned char preamble_type;
unsigned char byShortPreamble;
diff --git a/drivers/staging/vt6655/device_main.c b/drivers/staging/vt6655/device_main.c
index 37a82550ca82..cf8d9a05734d 100644
--- a/drivers/staging/vt6655/device_main.c
+++ b/drivers/staging/vt6655/device_main.c
@@ -229,7 +229,6 @@ static void device_init_registers(struct vnt_private *priv)
/* Get Channel range */
priv->byMinChannel = 1;
- priv->byMaxChannel = CB_MAX_CHANNEL;
/* Get Antena */
byValue = SROMbyReadEmbedded(priv->port_offset, EEP_OFS_ANTENNA);
--
2.25.1
Powered by blists - more mailing lists