Messages in this thread | | | From | Stephen Hemminger <> | Subject | Re: [PATCH 05/16] ehca: InfiniBand query and multicast functionality | Date | Thu, 27 Apr 2006 09:51:13 -0700 |
| |
On Thu, 27 Apr 2006 12:48:29 +0200 Heiko J Schick <schihei@de.ibm.com> wrote:
> Signed-off-by: Heiko J Schick <schickhj@de.ibm.com> > > > 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 majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |