]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
staging: rtl8723bs: remove header file ethernet.h
authorMichael Straube <straube.linux@gmail.com>
Wed, 25 Aug 2021 10:08:42 +0000 (12:08 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 26 Aug 2021 10:14:57 +0000 (12:14 +0200)
commit9bfb54a8c88e025b9ae1fe19afd6500a206dbba5
tree19e3536d7d477e232d9c3bb5fdf1b10d5b759cc8
parent07e7f36da8abb4563d145399270c0b92f8d79ff7
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>
drivers/staging/rtl8723bs/core/rtw_recv.c
drivers/staging/rtl8723bs/include/drv_types.h
drivers/staging/rtl8723bs/include/ethernet.h [deleted file]
drivers/staging/rtl8723bs/include/rtw_recv.h