Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6989d565 authored by Frans Pop's avatar Frans Pop Committed by Linus Torvalds
Browse files

hp-wmi: fix regressions caused by missing if statement



Error was introduced in commit fe8e4e03 ("hp-wmi: handle
rfkill_register() failure").

Signed-off-by: default avatarFrans Pop <elendil@planet.nl>
Acked-by: default avatarLarry Finger <Larry.Finger@lwfinger.net>
Acked-by: default avatarMatthew Garrett <mjg@redhat.com>
Cc: Matthew Garrett <mjg59@srcf.ucam.org>
Cc: Len Brown <lenb@kernel.org>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 8d50d369
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -441,6 +441,7 @@ static int __init hp_wmi_bios_setup(struct platform_device *device)
		bluetooth_rfkill->toggle_radio = hp_wmi_bluetooth_set;
		bluetooth_rfkill->user_claim_unsupported = 1;
		err = rfkill_register(bluetooth_rfkill);
		if (err)
			goto register_bluetooth_error;
	}