Skip to content

Commit

Permalink
platform-drivers-x86: samsung-q10: make dmi_check_callback return 1
Browse files Browse the repository at this point in the history
We only care about if there is any successful match from the dmi table
or no match at all, we can make dmi_check_system return immediately if
we have a successful match instead of iterate thorough the whole table.

Signed-off-by: Axel Lin <[email protected]>
Signed-off-by: Matthew Garrett <[email protected]>
  • Loading branch information
AxelLin authored and Matthew Garrett committed Aug 5, 2011
1 parent 78542e1 commit 046f828
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/platform/x86/samsung-q10.c
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ static struct platform_device *samsungq10_device;
static int __init dmi_check_callback(const struct dmi_system_id *id)
{
printk(KERN_INFO KBUILD_MODNAME ": found model '%s'\n", id->ident);
return 0;
return 1;
}

static struct dmi_system_id __initdata samsungq10_dmi_table[] = {
Expand Down

0 comments on commit 046f828

Please sign in to comment.