From 54937b859217bde2d59bd5267428f270c4271050 Mon Sep 17 00:00:00 2001 From: Jeremy Soller Date: Wed, 5 Sep 2018 08:28:13 -0600 Subject: [PATCH] Fix dmi check logic --- system76.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system76.c b/system76.c index 1d750e3..be5c6bc 100644 --- a/system76.c +++ b/system76.c @@ -279,7 +279,7 @@ static struct dmi_system_id s76_dmi_table[] __initdata = { MODULE_DEVICE_TABLE(dmi, s76_dmi_table); static int __init s76_init(void) { - if (!dmi_check_system(s76_dmi_table) > 0) { + if (!dmi_check_system(s76_dmi_table)) { S76_INFO("Model does not utilize this driver"); return -ENODEV; }