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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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-pci" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [DMA Engine]     [Linux Coverity]     [Linux USB]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Greybus]

  Powered by Linux