diff options
author | Colin Ian King <colin.king@canonical.com> | 2017-10-31 06:40:00 -0400 |
---|---|---|
committer | Sebastian Reichel <sre@kernel.org> | 2017-11-06 07:49:14 -0500 |
commit | 393ce139d5234a00200f9aaecb6048be138e0833 (patch) | |
tree | c4e87a8c3e3e5db293fa1f0f1692a1c8b4b4e849 | |
parent | c09c65ca5c76cc50412fc65e5c91f5dff3e401c5 (diff) |
power: supply: generic-adc-battery: remove redundant variable pdata
Pointer pdata is assigned but never used, so remove it. Cleans up the
clang warning:
drivers/power/supply/generic-adc-battery.c:211:2: warning: Value
stored to 'pdata' is never read
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.co.uk>
-rw-r--r-- | drivers/power/supply/generic-adc-battery.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/power/supply/generic-adc-battery.c b/drivers/power/supply/generic-adc-battery.c index 37e523374fe0..28dc056eaafa 100644 --- a/drivers/power/supply/generic-adc-battery.c +++ b/drivers/power/supply/generic-adc-battery.c | |||
@@ -201,14 +201,12 @@ err: | |||
201 | static void gab_work(struct work_struct *work) | 201 | static void gab_work(struct work_struct *work) |
202 | { | 202 | { |
203 | struct gab *adc_bat; | 203 | struct gab *adc_bat; |
204 | struct gab_platform_data *pdata; | ||
205 | struct delayed_work *delayed_work; | 204 | struct delayed_work *delayed_work; |
206 | bool is_plugged; | 205 | bool is_plugged; |
207 | int status; | 206 | int status; |
208 | 207 | ||
209 | delayed_work = to_delayed_work(work); | 208 | delayed_work = to_delayed_work(work); |
210 | adc_bat = container_of(delayed_work, struct gab, bat_work); | 209 | adc_bat = container_of(delayed_work, struct gab, bat_work); |
211 | pdata = adc_bat->pdata; | ||
212 | status = adc_bat->status; | 210 | status = adc_bat->status; |
213 | 211 | ||
214 | is_plugged = power_supply_am_i_supplied(adc_bat->psy); | 212 | is_plugged = power_supply_am_i_supplied(adc_bat->psy); |