aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/firmware
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/firmware')
-rw-r--r--drivers/firmware/dmi_scan.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/drivers/firmware/dmi_scan.c b/drivers/firmware/dmi_scan.c
index de3027521bfa..4072449ad1cd 100644
--- a/drivers/firmware/dmi_scan.c
+++ b/drivers/firmware/dmi_scan.c
@@ -217,10 +217,6 @@ static void __init dmi_save_devices(const struct dmi_header *dm)
217 } 217 }
218} 218}
219 219
220static struct dmi_device empty_oem_string_dev = {
221 .name = dmi_empty_string,
222};
223
224static void __init dmi_save_oem_strings_devices(const struct dmi_header *dm) 220static void __init dmi_save_oem_strings_devices(const struct dmi_header *dm)
225{ 221{
226 int i, count = *(u8 *)(dm + 1); 222 int i, count = *(u8 *)(dm + 1);
@@ -229,10 +225,8 @@ static void __init dmi_save_oem_strings_devices(const struct dmi_header *dm)
229 for (i = 1; i <= count; i++) { 225 for (i = 1; i <= count; i++) {
230 char *devname = dmi_string(dm, i); 226 char *devname = dmi_string(dm, i);
231 227
232 if (!strcmp(devname, dmi_empty_string)) { 228 if (devname == dmi_empty_string)
233 list_add(&empty_oem_string_dev.list, &dmi_devices);
234 continue; 229 continue;
235 }
236 230
237 dev = dmi_alloc(sizeof(*dev)); 231 dev = dmi_alloc(sizeof(*dev));
238 if (!dev) { 232 if (!dev) {