orinoco: remove unused array encaps_hdr and macro ENCAPS_OVERHEAD
authorColin Ian King <colin.king@canonical.com>
Thu, 16 Aug 2018 12:59:44 +0000 (13:59 +0100)
committerKalle Valo <kvalo@codeaurora.org>
Fri, 31 Aug 2018 15:45:19 +0000 (18:45 +0300)
Array encaps_hdr and macro ENCAPS_OVERHEAD are declared but are
not being used, hence they are redundant and can be removed.

Cleans up clang warning:
warning: 'encaps_hdr' defined but not used [-Wunused-const-variable=]

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/intersil/orinoco/orinoco_usb.c

index 94ad6fe..d8c2720 100644 (file)
 #define URB_ASYNC_UNLINK 0
 #endif
 
-/* 802.2 LLC/SNAP header used for Ethernet encapsulation over 802.11 */
-static const u8 encaps_hdr[] = {0xaa, 0xaa, 0x03, 0x00, 0x00, 0x00};
-#define ENCAPS_OVERHEAD                (sizeof(encaps_hdr) + 2)
-
 struct header_struct {
        /* 802.3 */
        u8 dest[ETH_ALEN];