On 08/18/2015 05:22 AM, Dan Carpenter wrote:
> Smatch says that, based on the indenting, we should probably add curly
> braces here.
> 
> Fixes: 230145ff8124 ('IB/core: Add RoCE GID table management')
> Signed-off-by: Dan Carpenter <[email protected]>

Thanks, applied.

> diff --git a/drivers/infiniband/core/device.c 
> b/drivers/infiniband/core/device.c
> index 258b3f7..5d5bbae 100644
> --- a/drivers/infiniband/core/device.c
> +++ b/drivers/infiniband/core/device.c
> @@ -807,9 +807,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) {
> 


-- 
Doug Ledford <[email protected]>
              GPG KeyID: 0E572FDD


Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to