Commit 00a5ebf8621e8098305ca5e7b319937eed430184
Committed by
Jeff Garzik
1 parent
837925df02
Exists in
master
and in
4 other branches
[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>
Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff
drivers/net/wireless/atmel.c
... | ... | @@ -784,11 +784,11 @@ |
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)) { |