Skip to contentSkip to conversation

hwmon: (tacho) Remove an unused variable

PATCH In review Dan Carpenter 2 participants 2 messages Apr 10, 2017 – Apr 12, 2017

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

PATCH 2/2 hwmon: (tacho) Remove an unused variable

We never use this global variable.

drivers/hwmon/aspeed-pwm-tacho.c +0 -2
index 2f22add5c73b..b96fff50a3ee 100644
@@ -153,8 +153,6 @@
 #define M_TACH_UNIT 0x1000
 #define INIT_FAN_CTRL 0xFF
 
-void __iomem *regs;
-
 struct aspeed_pwm_tacho_data {
 	struct regmap *regmap;
 	unsigned long clk_freq;
maintainer Acked-by on v1 2/2
#1 lore raw
Quoted 3 lines · Dan Carpenter

We never use this global variable.

Quoted 14 lines
drivers/hwmon/aspeed-pwm-tacho.c +0 -2
index 2f22add5c73b..b96fff50a3ee 100644
@@ -153,8 +153,6 @@
 #define M_TACH_UNIT 0x1000
 #define INIT_FAN_CTRL 0xFF
 
-void __iomem *regs;
-
 struct aspeed_pwm_tacho_data {
        struct regmap *regmap;
        unsigned long clk_freq;