hp-wmi: fix regressions caused by missing if statement
[GitHub/mt8127/android_kernel_alcatel_ttab.git] / drivers / platform / x86 / hp-wmi.c
index 7c789f0a94d71333be04a71ae0bf7e5ef64d0169..626042066be45981a8b03e359ea7b5aed7125b62 100644 (file)
@@ -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;
        }