firmware: dmi_scan: Optimize dmi_save_extended_devices
authorJean Delvare <jdelvare@suse.de>
Fri, 15 Jan 2016 21:08:44 +0000 (22:08 +0100)
committerJean Delvare <jdelvare@suse.de>
Fri, 15 Jan 2016 21:08:44 +0000 (22:08 +0100)
commit96e239434c629491e57a359a2f876b6d41476336
tree8392ace0b261fa74908eb9fc857459601bfc3764
parentafd2ff9b7e1b367172f18ba7f693dfb62bdcb2dc
firmware: dmi_scan: Optimize dmi_save_extended_devices

Calling dmi_string_nosave isn't cheap, so avoid calling it twice in a
row for the same string.

Signed-off-by: Jean Delvare <jdelvare@suse.de>
Cc: Jordan Hargrave <jordan_hargrave@dell.com>
Cc: Narendra K <narendra_k@dell.com>
drivers/firmware/dmi_scan.c