]> git.baikalelectronics.ru Git - kernel.git/commit
firmware: dmi_scan: Make dmi_walk and dmi_walk_early return real error codes
authorAndy Lutomirski <luto@kernel.org>
Thu, 15 Jun 2017 11:46:00 +0000 (13:46 +0200)
committerJean Delvare <jdelvare@suse.de>
Thu, 15 Jun 2017 11:46:00 +0000 (13:46 +0200)
commitcdf187ac632bcf691c8ec48f7cdbc480b38b6631
treeb792ab228b685848a0f8cd8880bcf8ca0876ceb5
parent7cdaceb8df2e503da49b9fa87f1b98f6d4add41a
firmware: dmi_scan: Make dmi_walk and dmi_walk_early return real error codes

Currently they return -1 on error, which will confuse callers if
they try to interpret it as a normal negative error code.

Signed-off-by: Andy Lutomirski <luto@kernel.org>
Signed-off-by: Darren Hart (VMware) <dvhart@infradead.org>
Signed-off-by: Jean Delvare <jdelvare@suse.de>
drivers/firmware/dmi_scan.c
include/linux/dmi.h