From f1bff698a466867808dd69f246f94938abf63064 Mon Sep 17 00:00:00 2001 From: Jeff Squyres Date: Wed, 13 Nov 2013 15:35:37 +0000 Subject: [PATCH] Fix compiler warning: event is unsigned; it can't be negative cmr=v1.7.4:reviewer=rhc This commit was SVN r29684. --- opal/runtime/opal_cr.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/opal/runtime/opal_cr.c b/opal/runtime/opal_cr.c index bc7da7d4c9..d8d2a033f4 100644 --- a/opal/runtime/opal_cr.c +++ b/opal/runtime/opal_cr.c @@ -866,7 +866,7 @@ int opal_cr_user_inc_register_callback(opal_cr_user_inc_callback_event_t event, opal_cr_user_inc_callback_fn_t function, opal_cr_user_inc_callback_fn_t *prev_function) { - if( event < 0 || event >= OMPI_CR_INC_MAX ) { + if (event >= OMPI_CR_INC_MAX) { return OPAL_ERROR; } @@ -888,7 +888,7 @@ int trigger_user_inc_callback(opal_cr_user_inc_callback_event_t event, return OPAL_SUCCESS; } - if( event < 0 || event >= OMPI_CR_INC_MAX ) { + if (event >= OMPI_CR_INC_MAX) { return OPAL_ERROR; }