Skip to contentSkip to conversation

libertas_tf: Drop unused variable and define

PATCH In review Guenter Roeck 2 participants 2 messages Jun 3, 2016 – Jun 16, 2016

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 libertas_tf: Drop unused variable and define

gcc-6 reports:

drivers/net/wireless/marvell/libertas_tf/main.c:30:19: error:
'lbtf_driver_version' defined but not used

with -Werror=unused-const-variable=.

---
 drivers/net/wireless/marvell/libertas_tf/main.c | 7 -------
 1 file changed, 7 deletions(-)
drivers/net/wireless/marvell/libertas_tf/main.c +0 -7
index 0bf8916a02cf..75bf0c8a2f6f 100644
@@ -16,7 +16,6 @@
 #include <linux/module.h>
 #include "libertas_tf.h"
 
-#define DRIVER_RELEASE_VERSION "004.p0"
 /* thinfirm version: 5.132.X.pX */
 #define LBTF_FW_VER_MIN		0x05840300
 #define LBTF_FW_VER_MAX		0x0584ffff
@@ -27,12 +26,6 @@ unsigned int lbtf_debug;
 EXPORT_SYMBOL_GPL(lbtf_debug);
 module_param_named(libertas_tf_debug, lbtf_debug, int, 0644);
 
-static const char lbtf_driver_version[] = "THINFIRM-USB8388-" DRIVER_RELEASE_VERSION
-#ifdef DEBUG
-	"-dbg"
-#endif
-	"";
-
 struct workqueue_struct *lbtf_wq;
 
 static const struct ieee80211_channel lbtf_channels[] = {
Signature · 1 line
2.5.0
#1 lore raw
Quoted 9 lines · Guenter Roeck

gcc-6 reports:

drivers/net/wireless/marvell/libertas_tf/main.c:30:19: error:
'lbtf_driver_version' defined but not used

with -Werror=unused-const-variable=.

Thanks, 1 patch applied to wireless-drivers-next.git:

035ddbc59f54 libertas_tf: Drop unused variable and define

Signature · 2 lines
Sent by pwcli
https://patchwork.kernel.org/patch/9154015/