]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
HID: steelseries: Fix STEELSERIES_SRWS1 handling in steelseries_remove()
authorJiri Kosina <jkosina@suse.com>
Fri, 12 Sep 2025 14:27:35 +0000 (16:27 +0200)
committerJiri Kosina <jkosina@suse.com>
Fri, 12 Sep 2025 14:27:35 +0000 (16:27 +0200)
commit2910913ef87dd9b9ce39e844c7295e1896b3b039
tree4a1998a0dc3a06c372e7a8e1d3cedcb6c3df0c18
parenta84eeacbf9325fd7f604b80f246aaba157730cd5
HID: steelseries: Fix STEELSERIES_SRWS1 handling in steelseries_remove()

srws1_remove label can be only reached only if LEDS subsystem is enabled. To
avoid putting horryfing ifdef second time around the label, just perform
the cleanup and exit immediately directly.

Fixes: a84eeacbf9325 ("HID: steelseries: refactor probe() and remove()")
Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202509090334.76D4qGtW-lkp@intel.com/
Signed-off-by: Jiri Kosina <jkosina@suse.com>
drivers/hid/hid-steelseries.c