HID: hid-steam: Mutex cleanup in steam_set_lizard_mode()
authorVicki Pfau <vi@endrift.com>
Wed, 5 Feb 2025 03:55:28 +0000 (19:55 -0800)
committerJiri Kosina <jkosina@suse.com>
Fri, 7 Feb 2025 13:28:12 +0000 (14:28 +0100)
commit41ab65301d0319df771bce29ee6c07fc112cebd9
tree3fc7f3e7e2fc0e5d37d88e48c2cd7b4b3b501ddc
parent27c02784773a69fd896e42f3cec73be8c5c83c1f
HID: hid-steam: Mutex cleanup in steam_set_lizard_mode()

Both branches of this if/else start with mutex_lock and end with mutex_unlock.
This hoists the mutex lock/unlock outside of the if statement for simplicity.

Signed-off-by: Vicki Pfau <vi@endrift.com>
Signed-off-by: Jiri Kosina <jkosina@suse.com>
drivers/hid/hid-steam.c