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: NBjorn Helgaas <bjorn.helgaas@hp.com> Signed-off-by: NJesse Barnes <jbarnes@virtuousgeek.org>
Showing
想要评论请 注册 或 登录