Ver código fonte

dccp: Fix bracing in dccp_feat_list_lookup.

From: Gerrit Renker <gerrit@erg.abdn.ac.uk>

Signed-off-by: David S. Miller <davem@davemloft.net>
Gerrit Renker 16 anos atrás
pai
commit
3d3e35aa78
1 arquivos alterados com 2 adições e 1 exclusões
  1. 2 1
      net/dccp/feat.c

+ 2 - 1
net/dccp/feat.c

@@ -171,11 +171,12 @@ static struct dccp_feat_entry *dccp_feat_list_lookup(struct list_head *fn_list,
 {
 {
 	struct dccp_feat_entry *entry;
 	struct dccp_feat_entry *entry;
 
 
-	list_for_each_entry(entry, fn_list, node)
+	list_for_each_entry(entry, fn_list, node) {
 		if (entry->feat_num == feat_num && entry->is_local == is_local)
 		if (entry->feat_num == feat_num && entry->is_local == is_local)
 			return entry;
 			return entry;
 		else if (entry->feat_num > feat_num)
 		else if (entry->feat_num > feat_num)
 			break;
 			break;
+	}
 	return NULL;
 	return NULL;
 }
 }