HID: nvidia-shield: Introduce thunderstrike_destroy()
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Mon, 18 Sep 2023 11:54:32 +0000 (04:54 -0700)
committerJiri Kosina <jkosina@suse.cz>
Wed, 4 Oct 2023 18:57:56 +0000 (20:57 +0200)
commit81701f7132f8cc589a67b6f4ecac2f759f140498
tree2f621894a3940508354170a745ae8b28e58c02ca
parentec2926f5f6221b550fbed6912dafd6ef72b29131
HID: nvidia-shield: Introduce thunderstrike_destroy()

In order to simplify some error handling paths and avoid code duplication,
introduce thunderstrike_destroy() which undoes thunderstrike_create().

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Reviewed-by: Rahul Rameshbabu <rrameshbabu@nvidia.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hid-nvidia-shield.c