summaryrefslogtreecommitdiffstats
path: root/mm/page_io.c
diff options
context:
space:
mode:
authorTomasz Nowicki2014-11-26 15:01:14 +0100
committerRafael J. Wysocki2014-11-27 02:07:41 +0100
commit4ceacd02f5a1795c5c697e0345ee10beef675290 (patch)
tree168a8638a12acff9ee059fcfd24818d4df17393f /mm/page_io.c
parentACPI / table: Add new function to get table entries (diff)
downloadkernel-qcow2-linux-4ceacd02f5a1795c5c697e0345ee10beef675290.tar.gz
kernel-qcow2-linux-4ceacd02f5a1795c5c697e0345ee10beef675290.tar.xz
kernel-qcow2-linux-4ceacd02f5a1795c5c697e0345ee10beef675290.zip
ACPI / table: Always count matched and successfully parsed entries
acpi_parse_entries() allows to traverse all available table entries (aka subtables) by passing max_entries parameter equal to 0, but since its count variable is only incremented if max_entries is not 0, the function always returns 0 for max_entries equal to 0. It would be more useful if it returned the number of entries matched instead, so make it increment count in that case too. Acked-by: Grant Likely <grant.likely@linaro.org> Signed-off-by: Tomasz Nowicki <tomasz.nowicki@linaro.org> Signed-off-by: Hanjun Guo <hanjun.guo@linaro.org> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'mm/page_io.c')
0 files changed, 0 insertions, 0 deletions