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)
commitc926820085437a27b27e78996b2c7a5ad94e8055
treeb792ab228b685848a0f8cd8880bcf8ca0876ceb5
parentc9aba14362a6eec583819ec8f4b872c1816f5cbe
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