mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-14 22:44:27 +08:00
power: supply: cros_usbpd: remove unused pointer 'dev'
Pointer 'dev' is being assigned but is never used hence it is redundant and can be removed. Cleans up clang warning: variable 'dev' set but not used [-Wunused-but-set-variable] Signed-off-by: Colin Ian King <colin.king@canonical.com> Reviewed-by: Krzysztof Kozlowski <krzk@kernel.org> Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
This commit is contained in:
parent
5b394b2ddf
commit
89a74789f4
@ -378,12 +378,10 @@ static int cros_usbpd_charger_ec_event(struct notifier_block *nb,
|
||||
{
|
||||
struct cros_ec_device *ec_device;
|
||||
struct charger_data *charger;
|
||||
struct device *dev;
|
||||
u32 host_event;
|
||||
|
||||
charger = container_of(nb, struct charger_data, notifier);
|
||||
ec_device = charger->ec_device;
|
||||
dev = charger->dev;
|
||||
|
||||
host_event = cros_ec_get_host_event(ec_device);
|
||||
if (host_event & EC_HOST_EVENT_MASK(EC_HOST_EVENT_PD_MCU)) {
|
||||
|
Loading…
Reference in New Issue
Block a user