]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
P2P: Clean up coding style and indentation level
authorJouni Malinen <j@w1.fi>
Sat, 11 Oct 2014 09:05:27 +0000 (12:05 +0300)
committerJouni Malinen <j@w1.fi>
Sat, 11 Oct 2014 09:05:27 +0000 (12:05 +0300)
The multi-line for loop body and incorrect indentation level on the
return statement looked pretty confusing.

Signed-off-by: Jouni Malinen <j@w1.fi>
src/p2p/p2p.c

index 9985e4f2583416bfbc10cc0a5e94f3483a8538a1..d35f34fe8bb12c9e75a3d30f58c00f83e8291da8 100644 (file)
@@ -1992,11 +1992,12 @@ int p2p_match_dev_type(struct p2p_data *p2p, struct wpabuf *wps)
                                attr.num_req_dev_type))
                return 1; /* Own Primary Device Type matches */
 
-       for (i = 0; i < p2p->cfg->num_sec_dev_types; i++)
+       for (i = 0; i < p2p->cfg->num_sec_dev_types; i++) {
                if (dev_type_list_match(p2p->cfg->sec_dev_type[i],
                                        attr.req_dev_type,
                                        attr.num_req_dev_type))
-               return 1; /* Own Secondary Device Type matches */
+                       return 1; /* Own Secondary Device Type matches */
+       }
 
        /* No matching device type found */
        return 0;