aboutsummaryrefslogtreecommitdiffstats
path: root/net/dccp/feat.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/dccp/feat.c')
-rw-r--r--net/dccp/feat.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/net/dccp/feat.c b/net/dccp/feat.c
index 47ce9abaf72b..2c2216f64b1b 100644
--- a/net/dccp/feat.c
+++ b/net/dccp/feat.c
@@ -171,11 +171,12 @@ static struct dccp_feat_entry *dccp_feat_list_lookup(struct list_head *fn_list,
171{ 171{
172 struct dccp_feat_entry *entry; 172 struct dccp_feat_entry *entry;
173 173
174 list_for_each_entry(entry, fn_list, node) 174 list_for_each_entry(entry, fn_list, node) {
175 if (entry->feat_num == feat_num && entry->is_local == is_local) 175 if (entry->feat_num == feat_num && entry->is_local == is_local)
176 return entry; 176 return entry;
177 else if (entry->feat_num > feat_num) 177 else if (entry->feat_num > feat_num)
178 break; 178 break;
179 }
179 return NULL; 180 return NULL;
180} 181}
181 182