Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
d1d8704c
Commit
d1d8704c
authored
9 years ago
by
Jean Delvare
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
firmware: dmi_scan: Coding style cleanups
Signed-off-by:
Jean Delvare
<
jdelvare@suse.de
>
parent
863ef5ba
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
drivers/firmware/dmi_scan.c
drivers/firmware/dmi_scan.c
+3
-4
No files found.
drivers/firmware/dmi_scan.c
View file @
d1d8704c
...
...
@@ -501,12 +501,12 @@ static int __init dmi_present(const u8 *buf)
switch
(
smbios_ver
)
{
case
0x021F
:
case
0x0221
:
pr_debug
(
"SMBIOS version fixup(2.%d->2.%d)
\n
"
,
pr_debug
(
"SMBIOS version fixup
(2.%d->2.%d)
\n
"
,
smbios_ver
&
0xFF
,
3
);
smbios_ver
=
0x0203
;
break
;
case
0x0233
:
pr_debug
(
"SMBIOS version fixup(2.%d->2.%d)
\n
"
,
51
,
6
);
pr_debug
(
"SMBIOS version fixup
(2.%d->2.%d)
\n
"
,
51
,
6
);
smbios_ver
=
0x0206
;
break
;
}
...
...
@@ -554,8 +554,7 @@ static int __init dmi_smbios3_present(const u8 *buf)
{
if
(
memcmp
(
buf
,
"_SM3_"
,
5
)
==
0
&&
buf
[
6
]
<
32
&&
dmi_checksum
(
buf
,
buf
[
6
]))
{
dmi_ver
=
get_unaligned_be32
(
buf
+
6
);
dmi_ver
&=
0xFFFFFF
;
dmi_ver
=
get_unaligned_be32
(
buf
+
6
)
&
0xFFFFFF
;
dmi_num
=
0
;
/* No longer specified */
dmi_len
=
get_unaligned_le32
(
buf
+
12
);
dmi_base
=
get_unaligned_le64
(
buf
+
16
);
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment