staging: r8188eu: remove ethernet.h header file
authorMichael Straube <straube.linux@gmail.com>
Tue, 24 Aug 2021 12:36:21 +0000 (14:36 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 26 Aug 2021 10:29:05 +0000 (12:29 +0200)
commitf7766f1b0030e7af179a5e75df52838268102fab
treed31f158bea4ed384998bc4b85d16e6b8225d0c57
parentf09dc911bd26c26bee20e349eb19eaf861c27aab
staging: r8188eu: remove ethernet.h header file

There are only two definitions from ethernet.h used in the driver.
Namely:

#define ETHERNET_HEADER_SIZE           14      /*  Ethernet Header Length */
#define LLC_HEADER_SIZE                6       /*  LLC Header Length */

Both are only used in the file core/rtw_recv.c. Replace the usage of
ETHERNET_HEADER_SIZE with ETH_HLEN, move the definition of LLC_HEADER_SIZE
into rtw_recv.h and remove the now unused ethernet.h header file.

Signed-off-by: Michael Straube <straube.linux@gmail.com>
Link: https://lore.kernel.org/r/20210824123621.10801-4-straube.linux@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/r8188eu/core/rtw_recv.c
drivers/staging/r8188eu/hal/rtl8188eu_recv.c
drivers/staging/r8188eu/include/ethernet.h [deleted file]
drivers/staging/r8188eu/include/rtw_recv.h
drivers/staging/r8188eu/os_dep/recv_linux.c