Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[PATCH] atmel: save on array initialization

NET: atmel - do not initialize array over and over again

Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Signed-off-by: John W. Linville <linville@tuxdriver.com>

authored by

Dmitry Torokhov and committed by
Jeff Garzik
00a5ebf8 837925df

+1 -1
+1 -1
drivers/net/wireless/atmel.c
··· 784 784 785 785 static int start_tx(struct sk_buff *skb, struct net_device *dev) 786 786 { 787 + static const u8 SNAP_RFC1024[6] = { 0xaa, 0xaa, 0x03, 0x00, 0x00, 0x00 }; 787 788 struct atmel_private *priv = netdev_priv(dev); 788 789 struct ieee80211_hdr_4addr header; 789 790 unsigned long flags; 790 791 u16 buff, frame_ctl, len = (ETH_ZLEN < skb->len) ? skb->len : ETH_ZLEN; 791 - u8 SNAP_RFC1024[6] = {0xaa, 0xaa, 0x03, 0x00, 0x00, 0x00}; 792 792 793 793 if (priv->card && priv->present_callback && 794 794 !(*priv->present_callback)(priv->card)) {