mirror of
https://github.com/openwrt/openwrt.git
synced 2026-10-13 15:28:21 +04:00
realtek: eth: rtl960x: remove static asserts of descriptors
These asserts seem to be unnecessary as in all normal build cases the u32 is 4 bytes making rtl960x_rx_desc to be size of 16 and rtl960x_tx_desc size of 20. Signed-off-by: Rustam Adilov <adilov@tutamail.com> Link: https://github.com/openwrt/openwrt/pull/25042 Signed-off-by: Markus Stockhausen <markus.stockhausen@gmx.de>
This commit is contained in:
1 parent
7ae1a716af
commit
d95ef3c999
1 file changed
-4
@@ -63,10 +63,6 @@
|
||||
|
||||
#define RTL960X_GMAC_REGS_DUMP_LEN 0x100
|
||||
|
||||
/* The ring strides are the HW descriptor sizes; guard the layout. */
|
||||
static_assert(sizeof(struct rtl960x_rx_desc) == 16);
|
||||
static_assert(sizeof(struct rtl960x_tx_desc) == 20);
|
||||
|
||||
struct rtl960x_gmac {
|
||||
struct net_device *dev;
|
||||
struct device *dma_dev;
|
||||
|
||||
Reference in new issue
Block a user