1
1

Merge pull request #1797 from jsquyres/pr/compiler-warning-fixes

openib: fix compiler warnings
Этот коммит содержится в:
Jeff Squyres 2016-06-18 12:30:17 -04:00 коммит произвёл GitHub
родитель 9c4f56be4b 7a8d7fb948
Коммит 50291fb828

Просмотреть файл

@ -428,7 +428,6 @@ static int openib_btl_size_queues(struct mca_btl_openib_module_t* openib_btl)
int rc = OPAL_SUCCESS;
mca_btl_openib_device_t *device = openib_btl->device;
uint32_t requested[BTL_OPENIB_MAX_CQ];
bool need_resize = false;
opal_mutex_lock(&openib_btl->ib_lock);
@ -455,7 +454,7 @@ static int openib_btl_size_queues(struct mca_btl_openib_module_t* openib_btl)
for (int cq = 0 ; cq < BTL_OPENIB_MAX_CQ ; ++cq) {
if (requested[cq] < mca_btl_openib_component.ib_cq_size[cq]) {
requested[cq] = mca_btl_openib_component.ib_cq_size[cq];
} else if (requested[cq] > openib_btl->device->ib_dev_attr.max_cqe) {
} else if (requested[cq] > (uint32_t) openib_btl->device->ib_dev_attr.max_cqe) {
requested[cq] = openib_btl->device->ib_dev_attr.max_cqe;
}