Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 86230
b: refs/heads/master
c: 43fe105
h: refs/heads/master
v: v3
  • Loading branch information
Jean Delvare authored and Linus Torvalds committed Feb 24, 2008
1 parent 72f50a1 commit 81d51a1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 79306a340c23e40c94ce16e504d172ae15b24187
refs/heads/master: 43fe105a5c91b2f00ea7f900ed307fe980410612
8 changes: 1 addition & 7 deletions trunk/drivers/firmware/dmi_scan.c
Original file line number Diff line number Diff line change
Expand Up @@ -217,10 +217,6 @@ static void __init dmi_save_devices(const struct dmi_header *dm)
}
}

static struct dmi_device empty_oem_string_dev = {
.name = dmi_empty_string,
};

static void __init dmi_save_oem_strings_devices(const struct dmi_header *dm)
{
int i, count = *(u8 *)(dm + 1);
Expand All @@ -229,10 +225,8 @@ static void __init dmi_save_oem_strings_devices(const struct dmi_header *dm)
for (i = 1; i <= count; i++) {
char *devname = dmi_string(dm, i);

if (!strcmp(devname, dmi_empty_string)) {
list_add(&empty_oem_string_dev.list, &dmi_devices);
if (devname == dmi_empty_string)
continue;
}

dev = dmi_alloc(sizeof(*dev));
if (!dev) {
Expand Down

0 comments on commit 81d51a1

Please sign in to comment.