Skip to contentSkip to conversation

HID: i2c-hid: Remove unused label in i2c_hid_set_power

PATCH In review Kenny Levinsen 2 participants 2 messages May 7, 2024 HID

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 HID: i2c-hid: Remove unused label in i2c_hid_set_power

This label was left behind when the wake-up logic was moved from i2c_hid_set_power to i2c_hid_probe_address. Clean it up as it causes warnings-as-errors builds to fail.

Fixes bb1033c8a3ea ("HID: i2c-hid: Use address probe to wake on resume")
---
 drivers/hid/i2c-hid/i2c-hid-core.c | 2 --
 1 file changed, 2 deletions(-)
drivers/hid/i2c-hid/i2c-hid-core.c +0 -2
index 3e3885ae6ce2..632eaf9e11a6 100644
@@ -407,8 +407,6 @@ static int i2c_hid_set_power(struct i2c_hid *ihid, int power_state)
 		dev_err(&ihid->client->dev,
 			"failed to change power setting.\n");
 
-set_pwr_exit:
-
 	/*
 	 * The HID over I2C specification states that if a DEVICE needs time
 	 * after the PWR_ON request, it should utilise CLOCK stretching.
Signature · 1 line
2.45.0
maintainer
#1 lore raw
Quoted 6 lines · Kenny Levinsen

This label was left behind when the wake-up logic was moved from i2c_hid_set_power to i2c_hid_probe_address. Clean it up as it causes warnings-as-errors builds to fail.

Fixes bb1033c8a3ea ("HID: i2c-hid: Use address probe to wake on resume")

I have added

and applied, thanks.

Signature · 2 lines
Jiri Kosina
SUSE Labs