From 6369e620429197f7cc0b6bfcb9734fe70f0b92f0 Mon Sep 17 00:00:00 2001 From: Dmitry Akhmedzhanov Date: Tue, 15 Oct 2019 02:19:57 +0300 Subject: [PATCH] Fixed a type in setting pkey Signed-off-by: Dmitry Akhmedzhanov --- src/multicast_resources.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/multicast_resources.c b/src/multicast_resources.c index c7a85ca6..08cb6948 100755 --- a/src/multicast_resources.c +++ b/src/multicast_resources.c @@ -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;