staging: vt6655: device_set_options remove unused ethernet addresses
authorMalcolm Priestley <tvboxspy@gmail.com>
Wed, 5 Nov 2014 21:08:54 +0000 (21:08 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 5 Nov 2014 22:49:13 +0000 (14:49 -0800)
Removing these variables
abyBroadcastAddr
abySNAP_RFC1042
abySNAP_Bridgetunnel

Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/vt6655/device.h
drivers/staging/vt6655/device_main.c

index 2f52297724d27ac6795e0cdaad470f91e9494fd9..05f2993f108165056e0f73514f2b8dbe6670f9ee 100644 (file)
@@ -440,9 +440,6 @@ struct vnt_private {
        unsigned long uNumSQ3[MAX_RATE];
        unsigned short wAntDiversityMaxRate;
 
-       unsigned char abyBroadcastAddr[ETH_ALEN];
-       unsigned char abySNAP_RFC1042[ETH_ALEN];
-       unsigned char abySNAP_Bridgetunnel[ETH_ALEN];
        unsigned char abyEEPROM[EEP_MAX_CONTEXT_SIZE]; /* unsigned long alignment */
 
        /* for 802.11h */
index e3b2d8fb1f6fe78d981c9eba1fd56f3ec89f0293..adcd6c804c2590e14afa40e216782a5d32e9929d 100644 (file)
@@ -222,14 +222,6 @@ static void device_get_options(struct vnt_private *pDevice)
 static void
 device_set_options(struct vnt_private *pDevice)
 {
-       unsigned char abyBroadcastAddr[ETH_ALEN] = {0xff, 0xff, 0xff, 0xff, 0xff, 0xff};
-       unsigned char abySNAP_RFC1042[ETH_ALEN] = {0xAA, 0xAA, 0x03, 0x00, 0x00, 0x00};
-       unsigned char abySNAP_Bridgetunnel[ETH_ALEN] = {0xAA, 0xAA, 0x03, 0x00, 0x00, 0xF8};
-
-       ether_addr_copy(pDevice->abyBroadcastAddr, abyBroadcastAddr);
-       ether_addr_copy(pDevice->abySNAP_RFC1042, abySNAP_RFC1042);
-       ether_addr_copy(pDevice->abySNAP_Bridgetunnel, abySNAP_Bridgetunnel);
-
        pDevice->byShortRetryLimit = pDevice->sOpts.short_retry;
        pDevice->byLongRetryLimit = pDevice->sOpts.long_retry;
        pDevice->bDiversityRegCtlON = (pDevice->sOpts.flags & DEVICE_FLAGS_DiversityANT) ? 1 : 0;