Skip to content

Commit

Permalink
IB/core: missing curly braces in ib_find_gid()
Browse files Browse the repository at this point in the history
Smatch says that, based on the indenting, we should probably add curly
braces here.

Fixes: 03db3a2 ('IB/core: Add RoCE GID table management')
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Ira Weiny <ira.weiny@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
  • Loading branch information
Dan Carpenter authored and Doug Ledford committed Aug 30, 2015
1 parent 03db3a2 commit 98d25af
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/infiniband/core/device.c
Original file line number Diff line number Diff line change
Expand Up @@ -835,9 +835,10 @@ 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) {
Expand Down

0 comments on commit 98d25af

Please sign in to comment.