From: Tomasz Nowicki Date: Wed, 26 Nov 2014 14:01:14 +0000 (+0800) Subject: ACPI / table: Always count matched and successfully parsed entries X-Git-Tag: omap-for-v3.19/fixes-rc1~136^2~8^5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4ceacd02f5a1795c5c697e0345ee10beef675290;p=pandora-kernel.git 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 Signed-off-by: Tomasz Nowicki Signed-off-by: Hanjun Guo Signed-off-by: Rafael J. Wysocki --- Reading git-diff-tree failed