From: Bjorn Helgaas Date: Tue, 28 Mar 2006 22:04:00 +0000 (-0500) Subject: PNPACPI: remove some code duplication X-Git-Tag: v2.6.18-rc1~1081^2~19^2~16^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b5f2490b6e3317059e87ba40d4f659d1c30afc1f;p=pandora-kernel.git PNPACPI: remove some code duplication Factor out the duplicated switch from pnpacpi_count_resources() and pnpacpi_type_resources(). Remove the unnecessary re-initialization of resource->type and length from all the encode functions (id and length are originally set in the pnpacpi_build_resource_template() -> pnpacpi_type_resources() path). Signed-off-by: Bjorn Helgaas Signed-off-by: Andrew Morton Signed-off-by: Len Brown --- Reading git-diff-tree failed