Commit 8638545c authored by Alan Cox's avatar Alan Cox Committed by Linus Torvalds

trivial: dmi_scan typo

As we've lost our trivial maintainer for the moment I'll send this
directly. Only touches a comment
Signed-off-by: default avatarAlan Cox <alan@redhat.com>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 1538a093
...@@ -81,9 +81,9 @@ static void dmi_table(u8 *buf, int len, int num, ...@@ -81,9 +81,9 @@ static void dmi_table(u8 *buf, int len, int num,
const struct dmi_header *dm = (const struct dmi_header *)data; const struct dmi_header *dm = (const struct dmi_header *)data;
/* /*
* We want to know the total length (formated area and strings) * We want to know the total length (formatted area and
* before decoding to make sure we won't run off the table in * strings) before decoding to make sure we won't run off the
* dmi_decode or dmi_string * table in dmi_decode or dmi_string
*/ */
data += dm->length; data += dm->length;
while ((data - buf < len - 1) && (data[0] || data[1])) while ((data - buf < len - 1) && (data[0] || data[1]))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment