diff options
author | Joonwoo Park <joonwpark81@gmail.com> | 2008-03-28 16:28:36 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-03-28 16:28:36 -0700 |
commit | a5a04819c5740cb1aa217af2cc8f5ef26f33d744 (patch) | |
tree | 044d51abecaf80e0488d2f43df2c512952687bca /net/llc/llc_core.c | |
parent | 27785d83e4256fedeff45256d4c827fdcb47f2ce (diff) | |
download | kernel_samsung_smdk4412-a5a04819c5740cb1aa217af2cc8f5ef26f33d744.tar.gz kernel_samsung_smdk4412-a5a04819c5740cb1aa217af2cc8f5ef26f33d744.tar.bz2 kernel_samsung_smdk4412-a5a04819c5740cb1aa217af2cc8f5ef26f33d744.zip |
[LLC]: station source mac address
kill unnecessary llc_station_mac_sa.
Signed-off-by: Joonwoo Park <joonwpark81@gmail.com>
Acked-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/llc/llc_core.c')
-rw-r--r-- | net/llc/llc_core.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/net/llc/llc_core.c b/net/llc/llc_core.c index 248b5903bb1..00de27cef46 100644 --- a/net/llc/llc_core.c +++ b/net/llc/llc_core.c @@ -25,8 +25,6 @@ LIST_HEAD(llc_sap_list); DEFINE_RWLOCK(llc_sap_list_lock); -unsigned char llc_station_mac_sa[ETH_ALEN]; - /** * llc_sap_alloc - allocates and initializes sap. * @@ -37,8 +35,8 @@ static struct llc_sap *llc_sap_alloc(void) struct llc_sap *sap = kzalloc(sizeof(*sap), GFP_ATOMIC); if (sap) { + /* sap->laddr.mac - leave as a null, it's filled by bind */ sap->state = LLC_SAP_STATE_ACTIVE; - memcpy(sap->laddr.mac, llc_station_mac_sa, ETH_ALEN); rwlock_init(&sap->sk_list.lock); atomic_set(&sap->refcnt, 1); } @@ -167,10 +165,6 @@ static int __init llc_init(void) if (dev != NULL) dev = next_net_device(dev); - if (dev != NULL) - memcpy(llc_station_mac_sa, dev->dev_addr, ETH_ALEN); - else - memset(llc_station_mac_sa, 0, ETH_ALEN); dev_add_pack(&llc_packet_type); dev_add_pack(&llc_tr_packet_type); return 0; |