resources: factor out resource_clip() to simplify find_resource()
commit5d6b1fa301b13cc651ee717a9b518124dea2f814
authorBjorn Helgaas <bjorn.helgaas@hp.com>
Tue, 26 Oct 2010 21:41:18 +0000 (26 15:41 -0600)
committerJesse Barnes <jbarnes@virtuousgeek.org>
Tue, 26 Oct 2010 22:33:24 +0000 (26 15:33 -0700)
tree53958650b23a85cbd1b58ebd9346fe62603c3a0d
parenta9cea017411c95ec789092971f9baaef1f826883
resources: factor out resource_clip() to simplify find_resource()

This factors out the min/max clipping to simplify find_resource().
No functional change.

Signed-off-by: Bjorn Helgaas <bjorn.helgaas@hp.com>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
kernel/resource.c