Skip to content

Commit 2b41ea9

Browse files
committed
prov/util: Fix copy-paste error
Fixing copy-paste error identified by weekly Coverity scan CID 501456 Signed-off-by: Alexey Novikov <nalexey@amazon.com>
1 parent 8c4eb96 commit 2b41ea9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

prov/util/src/util_attr.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -735,7 +735,7 @@ int ofi_check_domain_attr(const struct fi_provider *prov, uint32_t api_version,
735735
return -FI_ENODATA;
736736
}
737737

738-
if (prov_attr->max_cntr_value &&
738+
if (prov_attr->max_err_cntr_value &&
739739
user_attr->max_err_cntr_value >
740740
prov_attr->max_err_cntr_value) {
741741
OFI_INFO_CHECK_SIZE(prov, prov_attr, user_attr,
@@ -1276,7 +1276,7 @@ static void fi_alter_domain_attr(struct fi_domain_attr *attr,
12761276
}
12771277

12781278
attr->caps = ofi_get_caps(info_caps, hints ? hints->caps : 0, attr->caps);
1279-
1279+
12801280
if (attr->max_cntr_value == 0)
12811281
attr->max_cntr_value = UINT64_MAX;
12821282
if (attr->max_err_cntr_value == 0)

0 commit comments

Comments
 (0)