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:
Rustam Adilov authored and Markus Stockhausen committed 2026-09-07 08:11:16 +02:00
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;