HID: logitech-hidpp: do not make failure to get the name fatal
authorHans de Goede <hdegoede@redhat.com>
Sat, 20 Apr 2019 11:22:07 +0000 (13:22 +0200)
committerBenjamin Tissoires <benjamin.tissoires@redhat.com>
Tue, 23 Apr 2019 16:02:44 +0000 (18:02 +0200)
commit2ddf07f388af6c8f0db3ec21e17ca0f06b9ec0cc
treec0fe1e187adc6112959bea4608545956b0cdd3a9
parent22bf6bdef4a1d551fdaebbe8247e57569ea07b6a
HID: logitech-hidpp: do not make failure to get the name fatal

With devices attached to a non-unifying 2.4GHz receiver we sometimes fail
to get the name. This is not a fatal error, we can just continue with the
original name.

So instead of bailing out, continue with battery-initialization when this
happens. This fixes the battery not getting registered when we fail to
get the name.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
drivers/hid/hid-logitech-hidpp.c