PNP: reduce redundancy in pnp_check_port() and others
authorBjorn Helgaas <bjorn.helgaas@hp.com>
Mon, 28 Apr 2008 22:34:19 +0000 (16:34 -0600)
committerLen Brown <len.brown@intel.com>
Tue, 29 Apr 2008 07:22:25 +0000 (03:22 -0400)
commit30c016a0c8d2aae10be6a87bb98f0e85db8b09d5
tree3c76ff434ac96ca0a3948b335b740d8992651b68
parent28ccffcf028777e830cbdc30bc54ba8a37e2fc23
PNP: reduce redundancy in pnp_check_port() and others

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/resource.c