From: Dmitry Torokhov <dtor@insightbb•com>
To: linville@tuxdriver•com
Cc: netdev@vger•kernel.org
Subject: [patch 1/3] atmel: save on array initialization
Date: Sun, 08 Oct 2006 00:14:28 -0400 [thread overview]
Message-ID: <20061008041551.988552023.dtor@insightbb.com> (raw)
In-Reply-To: 20061008041427.216886195.dtor@insightbb.com
[-- Attachment #1: atmel-use-static-array.patch --]
[-- Type: text/plain, Size: 938 bytes --]
NET: atmel - do not initialize array over and over again
Signed-off-by: Dmitry Torokhov <dtor@mail•ru>
---
drivers/net/wireless/atmel.c | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)
Index: work/drivers/net/wireless/atmel.c
===================================================================
--- work.orig/drivers/net/wireless/atmel.c
+++ work/drivers/net/wireless/atmel.c
@@ -784,11 +784,11 @@ static void tx_update_descriptor(struct
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)) {
next prev parent reply other threads:[~2006-10-08 4:17 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-10-08 4:14 [patch 0/3] atmel: couple of cleanup patches Dmitry Torokhov
2006-10-08 4:14 ` Dmitry Torokhov [this message]
2006-10-08 4:14 ` [patch 2/3] atmel: use ARRAY_SIZE() Dmitry Torokhov
2006-10-08 4:14 ` [patch 3/3] atmel: whitespace cleanup Dmitry Torokhov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20061008041551.988552023.dtor@insightbb.com \
--to=dtor@insightbb$(echo .)com \
--cc=linville@tuxdriver$(echo .)com \
--cc=netdev@vger$(echo .)kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox