mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-12 00:00:00 +00:00
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>
This commit is contained in:
parent
c09c65ca5c
commit
393ce139d5
@ -201,14 +201,12 @@ err:
|
|||||||
static void gab_work(struct work_struct *work)
|
static void gab_work(struct work_struct *work)
|
||||||
{
|
{
|
||||||
struct gab *adc_bat;
|
struct gab *adc_bat;
|
||||||
struct gab_platform_data *pdata;
|
|
||||||
struct delayed_work *delayed_work;
|
struct delayed_work *delayed_work;
|
||||||
bool is_plugged;
|
bool is_plugged;
|
||||||
int status;
|
int status;
|
||||||
|
|
||||||
delayed_work = to_delayed_work(work);
|
delayed_work = to_delayed_work(work);
|
||||||
adc_bat = container_of(delayed_work, struct gab, bat_work);
|
adc_bat = container_of(delayed_work, struct gab, bat_work);
|
||||||
pdata = adc_bat->pdata;
|
|
||||||
status = adc_bat->status;
|
status = adc_bat->status;
|
||||||
|
|
||||||
is_plugged = power_supply_am_i_supplied(adc_bat->psy);
|
is_plugged = power_supply_am_i_supplied(adc_bat->psy);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user