x86/dmi: Drop trivial callback functions
authorAndrew Cooper <andrew.cooper3@citrix.com>
Wed, 24 Jul 2019 14:05:16 +0000 (15:05 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Thu, 25 Jul 2019 12:00:35 +0000 (13:00 +0100)
commit3a949655fe8369289fb6c4218adfdeb7cabcc2c3
tree73c3b2895f178548b603f2f53d4097db278d85d2
parentfbb417b81049071b3a73fe51f6f8ce151bfbdf0b
x86/dmi: Drop trivial callback functions

dmi_check_system() returns the number of matches.  This being nonzero is more
efficient than making a function pointer call to a trivial function to modify
a variable.

No functional change, but this results in less compiled code, which is
also (fractionally) quicker to run.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/ioport_emulate.c
xen/arch/x86/x86_64/mmconf-fam10h.c