On Thu, 27 Apr 2006 12:48:29 +0200
Heiko J Schick <[email protected]> wrote:
> Signed-off-by: Heiko J Schick <[email protected]>
>
>
> ehca_hca.c | 286 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
> ehca_mcast.c | 198 ++++++++++++++++++++++++++++++++++++++++
> 2 files changed, 484 insertions(+)
>
>
> +#define TO_MAX_INT(dest, src) \
> + if (src >= INT_MAX) \
> + dest = INT_MAX; \
> + else \
> + dest = src
> +
This is doubly ugly, replace
TO_MAX_INT(props->max_qp, (rblock->max_qp - rblock->cur_qp);
with
props->max_qp = min(rblock->max_qp - rblock->cur_qp, INT_MAX);
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
[Index of Archives]
[Kernel Newbies]
[Netfilter]
[Bugtraq]
[Photo]
[Stuff]
[Gimp]
[Yosemite News]
[MIPS Linux]
[ARM Linux]
[Linux Security]
[Linux RAID]
[Video 4 Linux]
[Linux for the blind]
[Linux Resources]