summaryrefslogtreecommitdiff
path: root/lib/find_next_bit.c
diff options
context:
space:
mode:
authorBjorn Helgaas <bjorn.helgaas@hp.com>2006-03-28 22:04:00 (GMT)
committerLen Brown <len.brown@intel.com>2006-04-02 02:26:45 (GMT)
commitb5f2490b6e3317059e87ba40d4f659d1c30afc1f (patch)
tree8eaa4898b89001bc5e53922d2414967f911b84dd /lib/find_next_bit.c
parent1acfb7f2b0d460ee86bdb25ad0679070ec8a5f0d (diff)
downloadlinux-fsl-qoriq-b5f2490b6e3317059e87ba40d4f659d1c30afc1f.tar.xz
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 <bjorn.helgaas@hp.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'lib/find_next_bit.c')
0 files changed, 0 insertions, 0 deletions