]> git.baikalelectronics.ru Git - kernel.git/commit
firmware: dmi_scan: Use direct access to static vars
authorIvan Khoronzhuk <ivan.khoronzhuk@linaro.org>
Wed, 18 Feb 2015 11:33:21 +0000 (13:33 +0200)
committerMatt Fleming <matt.fleming@intel.com>
Thu, 26 Mar 2015 14:00:15 +0000 (14:00 +0000)
commit4a954c9368f6f370ed4d1f12ee8d807dc2b3c195
tree6174dd9aeae063a12001455cbb6c6772bc69fbc2
parentc71f336ae74a7276fb6f083021251689ddafbcd1
firmware: dmi_scan: Use direct access to static vars

There is no reason to pass static vars to function that can use
only them.

The dmi_table() can use only dmi_len and dmi_num static vars, so use
them directly. In this case we can freely change their type in one
place and slightly decrease redundancy.

Signed-off-by: Ivan Khoronzhuk <ivan.khoronzhuk@linaro.org>
Signed-off-by: Matt Fleming <matt.fleming@intel.com>
drivers/firmware/dmi_scan.c