diff --git a/src/clevo_keyboard.h b/src/clevo_keyboard.h index 158a41a..11aec25 100644 --- a/src/clevo_keyboard.h +++ b/src/clevo_keyboard.h @@ -299,10 +299,8 @@ EXPORT_SYMBOL(clevo_evaluate_method); u32 clevo_get_active_interface_id(char **id_str) { - if (IS_ERR_OR_NULL(active_clevo_interface)) { - pr_err("clevo_keyboard: no active interface\n"); + if (IS_ERR_OR_NULL(active_clevo_interface)) return -ENODEV; - } if (!IS_ERR_OR_NULL(id_str)) *id_str = active_clevo_interface->string_id;