]> git.hungrycats.org Git - linux/commitdiff
[TOKENRING]: mcast_addr need not be on stack.
authorStephen Hemminger <shemminger@osdl.org>
Thu, 21 Aug 2003 05:15:17 +0000 (22:15 -0700)
committerDavid S. Miller <davem@nuts.ninka.net>
Thu, 21 Aug 2003 05:15:17 +0000 (22:15 -0700)
Multicast address value is put on stack and can just be static const.

net/802/tr.c

index 91792c2c74d6f0f40d8e7a75ed6f9edf15d1ab4d..5341818188cb3da8a84ef0883407475b4f4dcbc0 100644 (file)
@@ -235,7 +235,8 @@ void tr_source_route(struct sk_buff *skb,struct trh_hdr *trh,struct net_device *
        unsigned int hash;
        struct rif_cache_s *entry;
        unsigned char *olddata;
-       unsigned char mcast_func_addr[] = {0xC0,0x00,0x00,0x04,0x00,0x00};
+       static const unsigned char mcast_func_addr[] 
+               = {0xC0,0x00,0x00,0x04,0x00,0x00};
        
        spin_lock_bh(&rif_lock);