lkml.org 
[lkml]   [2010]   [Feb]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 06/35] x86/pci: add cap_resource
On Tue, 09 Feb 2010 11:32:17 -0800
Yinghai Lu <yinghai@kernel.org> wrote:

> +static inline resource_size_t cap_resource(u64 val)
> +{
> + if (val > MAX_RESOURCE)
> + return MAX_RESOURCE;
> + else
> + return val;
> +}

return min(val, MAX_RESOURCE);


\
 
 \ /
  Last update: 2010-02-09 20:59    [W:0.104 / U:4.760 seconds]
©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site