projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
837925d
)
[PATCH] atmel: save on array initialization
author
Dmitry Torokhov
<dtor@insightbb.com>
Sun, 8 Oct 2006 04:14:28 +0000
(
00:14
-0400)
committer
Jeff Garzik
<jeff@garzik.org>
Sat, 2 Dec 2006 05:11:57 +0000
(
00:11
-0500)
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>
drivers/net/wireless/atmel.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/net/wireless/atmel.c
b/drivers/net/wireless/atmel.c
index 0c07b8b7250d604b8ffd453b947020c9aec3ae46..3a6397ffda50f2ef6751bc014ab4cab250fe0af0 100644
(file)
--- a/
drivers/net/wireless/atmel.c
+++ b/
drivers/net/wireless/atmel.c
@@
-784,11
+784,11
@@
static void tx_update_descriptor(struct atmel_private *priv, int is_bcast,
static int start_tx(struct sk_buff *skb, struct net_device *dev)
{
+ static const u8 SNAP_RFC1024[6] = { 0xaa, 0xaa, 0x03, 0x00, 0x00, 0x00 };
struct atmel_private *priv = netdev_priv(dev);
struct ieee80211_hdr_4addr header;
unsigned long flags;
u16 buff, frame_ctl, len = (ETH_ZLEN < skb->len) ? skb->len : ETH_ZLEN;
- u8 SNAP_RFC1024[6] = {0xaa, 0xaa, 0x03, 0x00, 0x00, 0x00};
if (priv->card && priv->present_callback &&
!(*priv->present_callback)(priv->card)) {