diff options
author | RongQing.Li <roy.qing.li@gmail.com> | 2012-04-05 11:36:29 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-04-05 11:42:18 +0200 |
commit | ce713ee5a10f3a171df94b0d501034aab2388c16 (patch) | |
tree | fc51b89dc562d3b49bc6db964f405fda0575c03d /net/ipv4/igmp.c | |
parent | net: remove k{un}map_skb_frag() (diff) | |
download | linux-ce713ee5a10f3a171df94b0d501034aab2388c16.tar.xz linux-ce713ee5a10f3a171df94b0d501034aab2388c16.zip |
net: replace continue with break to reduce unnecessary loop in xxx_xmarksources
The conditional which decides to skip inactive filters does not
change with the change of loop index, so it is unnecessary to
check them many times.
Signed-off-by: RongQing.Li <roy.qing.li@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/igmp.c')
-rw-r--r-- | net/ipv4/igmp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv4/igmp.c b/net/ipv4/igmp.c index 450e5d21ed2a..e9b90a8ca55a 100644 --- a/net/ipv4/igmp.c +++ b/net/ipv4/igmp.c @@ -775,7 +775,7 @@ static int igmp_xmarksources(struct ip_mc_list *pmc, int nsrcs, __be32 *srcs) if (psf->sf_count[MCAST_INCLUDE] || pmc->sfcount[MCAST_EXCLUDE] != psf->sf_count[MCAST_EXCLUDE]) - continue; + break; if (srcs[i] == psf->sf_inaddr) { scount++; break; |