diff options
author | Jiapeng Chong <jiapeng.chong@linux.alibaba.com> | 2025-04-16 10:58:03 +0800 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.com> | 2025-04-24 12:52:11 +0200 |
commit | acae9d5b51cf8d4da87ed13140e3de4970669213 (patch) | |
tree | 9dc97a4bab818f0fd539e4041d0824738c64ced4 | |
parent | f32e8c8095490152b5bc5f467d5034387a4bbd1b (diff) |
HID: hid-steam: Remove the unused variable connected
Variable connected is not effectively used, so delete it.
drivers/hid/hid-steam.c:1153:7: warning: variable ‘connected’ set but not used.
Reported-by: Abaci Robot <abaci@linux.alibaba.com>
Closes: https://bugzilla.openanolis.cn/show_bug.cgi?id=20462
Signed-off-by: Jiapeng Chong <jiapeng.chong@linux.alibaba.com>
Signed-off-by: Jiri Kosina <jkosina@suse.com>
-rw-r--r-- | drivers/hid/hid-steam.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/hid/hid-steam.c b/drivers/hid/hid-steam.c index dfd9d22ed559..949d307c66a8 100644 --- a/drivers/hid/hid-steam.c +++ b/drivers/hid/hid-steam.c @@ -1150,11 +1150,9 @@ static void steam_client_ll_close(struct hid_device *hdev) struct steam_device *steam = hdev->driver_data; unsigned long flags; - bool connected; spin_lock_irqsave(&steam->lock, flags); steam->client_opened--; - connected = steam->connected && !steam->client_opened; spin_unlock_irqrestore(&steam->lock, flags); schedule_work(&steam->unregister_work); |