Skip to content

Commit

Permalink
Fixed a type in setting pkey
Browse files Browse the repository at this point in the history
Signed-off-by: Dmitry Akhmedzhanov <[email protected]>
  • Loading branch information
Dmitry Akhmedzhanov committed Oct 14, 2019
1 parent 6d41b16 commit 6369e62
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/multicast_resources.c
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ static int set_pkey(void *umad_buff, struct ibv_context *ctx, int port_num)
return ret;

pkey_tbl = device_attr.max_pkeys;
for (i = 0; i < pkey_tbl; i) {
for (i = 0; i < pkey_tbl; ++i) {
ret = ibv_query_pkey(ctx, port_num, i, &tmp_pkey);
if (ret)
continue;
Expand Down

0 comments on commit 6369e62

Please sign in to comment.