netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [patch] bridge: cleanup: remove unused assignment
@ 2010-03-20 11:20 Dan Carpenter
  2010-03-20 11:57 ` Herbert Xu
  0 siblings, 1 reply; 3+ messages in thread
From: Dan Carpenter @ 2010-03-20 11:20 UTC (permalink / raw)
  To: Herbert Xu
  Cc: David S. Miller, Stephen Hemminger, YOSHIFUJI Hideaki,
	Paul E. McKenney, Michael Braun, bridge, netdev, kernel-janitors

We never actually use iph again so this assignment can be removed.

Signed-off-by: Dan Carpenter <error27@gmail.com>

diff --git a/net/bridge/br_multicast.c b/net/bridge/br_multicast.c
index 6980625..9f0c4f0 100644
--- a/net/bridge/br_multicast.c
+++ b/net/bridge/br_multicast.c
@@ -1003,8 +1003,6 @@ static int br_multicast_ipv4_rcv(struct net_bridge *br,
 	if (!pskb_may_pull(skb2, sizeof(*ih)))
 		goto out;
 
-	iph = ip_hdr(skb2);
-
 	switch (skb2->ip_summed) {
 	case CHECKSUM_COMPLETE:
 		if (!csum_fold(skb2->csum))

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2010-03-22  4:30 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-03-20 11:20 [patch] bridge: cleanup: remove unused assignment Dan Carpenter
2010-03-20 11:57 ` Herbert Xu
2010-03-22  4:30   ` David Miller

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).