netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 4/4]net:ipv6:fixed space issues relating to >= and !=
@ 2012-05-21 19:05 Jeffrin Jose
  0 siblings, 0 replies; only message in thread
From: Jeffrin Jose @ 2012-05-21 19:05 UTC (permalink / raw)
  To: davem, edumazet, loke.chetan, herbert; +Cc: netdev, linux-kernel, ahiliation

Fixed space issues related to >= and != operators
in net/ipv6/mcast.c found by cheackpatch.pl tool

Signed-off-by: Jeffrin Jose <ahiliation@yahoo.co.in>
---
 net/ipv6/mcast.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/net/ipv6/mcast.c b/net/ipv6/mcast.c
index 541893d..9de31b3 100644
--- a/net/ipv6/mcast.c
+++ b/net/ipv6/mcast.c
@@ -427,7 +427,7 @@ int ip6_mc_source(int add, int omode, struct sock *sk,
 	}
 	if (rv == 0)		/* address already there is an error */
 		goto done;
-	for (j = psl->sl_count-1; j>=i; j--)
+	for (j = psl->sl_count-1; j >= i; j--)
 		psl->sl_addr[j+1] = psl->sl_addr[j];
 	psl->sl_addr[i] = *source;
 	psl->sl_count++;
@@ -987,7 +987,7 @@ int ipv6_chk_mcast_addr(struct net_device *dev, const struct in6_addr *group,
 						psf->sf_count[MCAST_EXCLUDE] !=
 						mc->mca_sfcount[MCAST_EXCLUDE];
 				else
-					rv = mc->mca_sfcount[MCAST_EXCLUDE] !=0;
+					rv = mc->mca_sfcount[MCAST_EXCLUDE] != 0;
 				spin_unlock_bh(&mc->mca_lock);
 			} else
 				rv = 1; /* don't filter unspecified source */
-- 
1.7.10

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2012-05-21 19:05 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-05-21 19:05 [PATCH 4/4]net:ipv6:fixed space issues relating to >= and != Jeffrin Jose

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).