Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 98d25afa authored by Dan Carpenter's avatar Dan Carpenter Committed by Doug Ledford
Browse files

IB/core: missing curly braces in ib_find_gid()



Smatch says that, based on the indenting, we should probably add curly
braces here.

Fixes: 03db3a2d ('IB/core: Add RoCE GID table management')
Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: default avatarIra Weiny <ira.weiny@intel.com>
Signed-off-by: default avatarDoug Ledford <dledford@redhat.com>
parent 03db3a2d
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -835,10 +835,11 @@ int ib_find_gid(struct ib_device *device, union ib_gid *gid,
	for (port = rdma_start_port(device); port <= rdma_end_port(device); ++port) {
		if (rdma_cap_roce_gid_table(device, port)) {
			if (!ib_cache_gid_find_by_port(device, gid, port,
						       NULL, index))
						       NULL, index)) {
				*port_num = port;
				return 0;
			}
		}

		for (i = 0; i < device->port_immutable[port].gid_tbl_len; ++i) {
			ret = ib_query_gid(device, port, i, &tmp_gid);