diff options
author | Michael Straube <straube.linux@gmail.com> | 2021-08-24 14:36:21 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-08-26 12:29:05 +0200 |
commit | f7766f1b0030e7af179a5e75df52838268102fab (patch) | |
tree | d31f158bea4ed384998bc4b85d16e6b8225d0c57 /drivers/staging/r8188eu/include/rtw_recv.h | |
parent | f09dc911bd26c26bee20e349eb19eaf861c27aab (diff) | |
download | linux-f7766f1b0030e7af179a5e75df52838268102fab.tar.bz2 |
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>
Diffstat (limited to 'drivers/staging/r8188eu/include/rtw_recv.h')
-rw-r--r-- | drivers/staging/r8188eu/include/rtw_recv.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/staging/r8188eu/include/rtw_recv.h b/drivers/staging/r8188eu/include/rtw_recv.h index 1b41f8d7d079..d1d1ca0e56d6 100644 --- a/drivers/staging/r8188eu/include/rtw_recv.h +++ b/drivers/staging/r8188eu/include/rtw_recv.h @@ -20,6 +20,8 @@ #define MAX_SUBFRAME_COUNT 64 +#define LLC_HEADER_SIZE 6 + /* for Rx reordering buffer control */ struct recv_reorder_ctrl { struct adapter *padapter; |