From: Laurent Mazet Date: Mon, 24 Mar 2025 04:29:56 +0000 (+0100) Subject: wip X-Git-Tag: v1.0~108 X-Git-Url: https://secure.softndesign.org/git/?a=commitdiff_plain;h=d1d150a853913b2f0e2ca5e8cc5c6de73014eb84;p=morep.git wip --- 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; }