Re: [PATCH 06/35] x86/pci: add cap_resource

From: Andrew Morton
Date: Tue Feb 09 2010 - 14:57:34 EST


On Tue, 09 Feb 2010 11:32:17 -0800
Yinghai Lu <yinghai@xxxxxxxxxx> 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);
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/