mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-09-04 20:19:47 +08:00
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>
This commit is contained in:
parent
f32e8c8095
commit
acae9d5b51
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user