wip
authorLaurent Mazet <mazet@softndesign.org>
Mon, 24 Mar 2025 04:29:56 +0000 (05:29 +0100)
committerLaurent Mazet <mazet@softndesign.org>
Mon, 24 Mar 2025 04:29:56 +0000 (05:29 +0100)
morep.c

diff --git a/morep.c b/morep.c
index 15627aee220ce4dbac7197f369401807f99643de..059d240238d7f0e531484c3d99a407d182556d86 100644 (file)
--- 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;
     }