diff options
author | Michael Straube <straube.linux@gmail.com> | 2021-08-25 12:08:42 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-08-26 12:14:57 +0200 |
commit | 9bfb54a8c88e025b9ae1fe19afd6500a206dbba5 (patch) | |
tree | 19e3536d7d477e232d9c3bb5fdf1b10d5b759cc8 /drivers/staging/rtl8723bs/include/drv_types.h | |
parent | staging/rtl8192u: Prefer kcalloc over open coded arithmetic (diff) | |
download | linux-dev-9bfb54a8c88e025b9ae1fe19afd6500a206dbba5.tar.xz linux-dev-9bfb54a8c88e025b9ae1fe19afd6500a206dbba5.zip |
staging: rtl8723bs: remove header file ethernet.h
The header file ehternet.h defines only two constants.
#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 and ETHERNET_HEADER_SIZE
just duplicates the in-kernel constant ETH_HLEN. Replace the usage of
ETHERNET_HEADER_SIZE with ETH_HLEN, move the definition of LLC_HEADER_SIZE
into rtw_rev.h (renamed to LLC_HEADER_LENGTH) and remove the now unused
header file ethernet.h.
Signed-off-by: Michael Straube <straube.linux@gmail.com>
Link: https://lore.kernel.org/r/20210825100842.13217-1-straube.linux@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/rtl8723bs/include/drv_types.h')
-rw-r--r-- | drivers/staging/rtl8723bs/include/drv_types.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/staging/rtl8723bs/include/drv_types.h b/drivers/staging/rtl8723bs/include/drv_types.h index ae32963a156d..0ce08c2a0755 100644 --- a/drivers/staging/rtl8723bs/include/drv_types.h +++ b/drivers/staging/rtl8723bs/include/drv_types.h @@ -57,7 +57,6 @@ #include <linux/ip.h> #include <linux/if_ether.h> -#include <ethernet.h> #define SPEC_DEV_ID_NONE BIT(0) #define SPEC_DEV_ID_DISABLE_HT BIT(1) |