PNP: reduce redundancy in pnp_set_current_resources()
authorBjorn Helgaas <bjorn.helgaas@hp.com>
Mon, 28 Apr 2008 22:34:20 +0000 (16:34 -0600)
committerLen Brown <len.brown@intel.com>
Tue, 29 Apr 2008 07:22:25 +0000 (03:22 -0400)
commit470feb113a23de365b6051efde0d69de86d9d2f8
tree046672a3e12f41d0ef2fd8ffbe82650d7f26ee2d
parent30c016a0c8d2aae10be6a87bb98f0e85db8b09d5
PNP: reduce redundancy in pnp_set_current_resources()

Use a temporary "res" pointer to replace repeated lookups in
the pnp resource tables.

Signed-off-by: Bjorn Helgaas <bjorn.helgaas@hp.com>
Acked-By: Rene Herman <rene.herman@gmail.com>
Signed-off-by: Len Brown <len.brown@intel.com>
drivers/pnp/interface.c