]> git.baikalelectronics.ru Git - kernel.git/commit
dmi_scan: add comments on dmi_present() and the loop in dmi_scan_machine()
authorBen Hutchings <ben@decadent.org.uk>
Wed, 31 Jul 2013 20:53:30 +0000 (13:53 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 31 Jul 2013 21:41:02 +0000 (14:41 -0700)
commit3d74345d4e9b96e624394251757d028f812eea31
treec08bfae999e12bc54c0d3a577d439d7a27bf11a3
parentc2a068e6ea254bdc3fd5dddc0030551734c32b2d
dmi_scan: add comments on dmi_present() and the loop in dmi_scan_machine()

My previous refactoring in commit 70ab681543b3 ("dmi_scan: refactor
dmi_scan_machine(), {smbios,dmi}_present()") resulted in slightly tricky
code (though I think it's more elegant).  Explain what it's doing.

Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Cc: Zhenzhong Duan <zhenzhong.duan@oracle.com>
Cc: Jean Delvare <jdelvare@suse.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/firmware/dmi_scan.c