From d1d150a853913b2f0e2ca5e8cc5c6de73014eb84 Mon Sep 17 00:00:00 2001 From: Laurent Mazet Date: Mon, 24 Mar 2025 05:29:56 +0100 Subject: [PATCH] wip --- morep.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/morep.c b/morep.c index 15627ae..059d240 100644 --- a/morep.c +++ b/morep.c @@ -297,7 +297,7 @@ uint8_t *MOREP_Get_Tx_Buffer (int index, int *size) VERBOSE (morep, ERROR, PRINTF ("incorrect MOREP descriptor (%d)\n", index)); return NULL; } - if (*size) { + if (size) { *size = MAX_ETHER_SIZE + 14 - 18; } @@ -342,7 +342,7 @@ uint8_t *MOREP_Get_Rx_Buffer (int index, int *size) VERBOSE (morep, ERROR, PRINTF ("incorrect MOREP descriptor (%d)\n", index)); return NULL; } - if (*size) { + if (size) { *size = MOREP_list[index]->rxlen; } -- 2.30.2