]> 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)
commit636422e4254fe9c30a9ec747bdf421ba5f0db840
treec08bfae999e12bc54c0d3a577d439d7a27bf11a3
parent1ac82c6b565c8be5664244e88f7dcf6eb12800af
dmi_scan: add comments on dmi_present() and the loop in dmi_scan_machine()

My previous refactoring in commit 7882b0fd708c ("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