]> git.baikalelectronics.ru Git - kernel.git/commit
hid: hid-logitech-hidpp: avoid unnecessary assignments in hidpp_connect_event
authorHangyu Hua <hbh25y@gmail.com>
Fri, 12 Aug 2022 02:55:15 +0000 (10:55 +0800)
committerBenjamin Tissoires <benjamin.tissoires@redhat.com>
Tue, 20 Sep 2022 10:24:30 +0000 (11:24 +0100)
commite3ca7b4aa6a3e7e402218b49c6145319cc2ed709
tree6a4183592d192663629b10e8b91160a43faea074
parent200a411939b3e3810a5a5e37f00c9e6a307d18ff
hid: hid-logitech-hidpp: avoid unnecessary assignments in hidpp_connect_event

hidpp->delayed_input can't be assigned to an object that already call
input_free_device when input_register_device fails.

Fixes: 9e75ae3ec455 ("HID: logitech-hidpp: late bind the input device on wireless connection")
Signed-off-by: Hangyu Hua <hbh25y@gmail.com>
Signed-off-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Link: https://lore.kernel.org/r/20220812025515.19467-1-hbh25y@gmail.com
drivers/hid/hid-logitech-hidpp.c