From f7a94f17b941bbc36f5a883b00d2f06d5c8c9b45 Mon Sep 17 00:00:00 2001 From: Jeff Squyres Date: Thu, 9 Oct 2008 13:12:49 +0000 Subject: [PATCH] Since we now & in the mask, the value can never be higher than the mask value. Also, the value is unsigned, so it can never be less than 0. This commit was SVN r19719. --- ompi/mca/btl/openib/btl_openib_mca.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/ompi/mca/btl/openib/btl_openib_mca.c b/ompi/mca/btl/openib/btl_openib_mca.c index f1557ca37b..18757c5300 100644 --- a/ompi/mca/btl/openib/btl_openib_mca.c +++ b/ompi/mca/btl/openib/btl_openib_mca.c @@ -282,13 +282,6 @@ int btl_openib_register_mca_params(void) "0", &pkey, 0)); mca_btl_openib_component.ib_pkey_val = ompi_btl_openib_ini_intify(pkey) & MCA_BTL_IB_PKEY_MASK; - if (mca_btl_openib_component.ib_pkey_val > MCA_BTL_IB_PKEY_MASK || - mca_btl_openib_component.ib_pkey_val < 0) { - orte_show_help("help-mpi-btl-openib.txt", "invalid mca param value", - true, "invalid value for btl_openib_ib_pkey_val", - "btl_openib_ib_pkey_val ignored"); - mca_btl_openib_component.ib_pkey_val = 0; - } free(pkey); CHECK(reg_int("psn", "ib_psn",