]> git.sur5r.net Git - freertos/blobdiff - Demo/CORTEX_A2F200_SoftConsole/MicroSemi_Code/drivers/mss_ethernet_mac/mss_ethernet_mac.c
RC 1 of the Microsemi demos.
[freertos] / Demo / CORTEX_A2F200_SoftConsole / MicroSemi_Code / drivers / mss_ethernet_mac / mss_ethernet_mac.c
index 098e1d3b37a54079c80f848c02b35fdf76819275..4e92171a9aff5ed6bdb1f2069ca77c75e1c0b8cd 100644 (file)
@@ -1448,7 +1448,7 @@ void MSS_MAC_FreeTxBuffers( void )
        /* Check the buffers have not already been freed in the first of the\r
        two Tx interrupts - which could potentially happen if the second Tx completed\r
        during the interrupt for the first Tx. */\r
-       if( g_mss_mac.tx_descriptors[ 0 ].buffer_1 != NULL )\r
+       if( g_mss_mac.tx_descriptors[ 0 ].buffer_1 != ( uint32_t ) NULL )\r
        {\r
                if( ( ( (g_mss_mac.tx_descriptors[ 0 ].descriptor_0) & TDES0_OWN) == 0 ) && ( ( (g_mss_mac.tx_descriptors[ 1 ].descriptor_0) & TDES0_OWN) == 0 ) )\r
                {\r
@@ -1456,7 +1456,7 @@ void MSS_MAC_FreeTxBuffers( void )
                        MAC_release_buffer( ( unsigned char * ) g_mss_mac.tx_descriptors[ 0 ].buffer_1 );\r
                        \r
                        /* Just to mark the fact that the buffer has already been released. */\r
-                       g_mss_mac.tx_descriptors[ 0 ].buffer_1 == NULL;\r
+                       g_mss_mac.tx_descriptors[ 0 ].buffer_1 = ( uint32_t ) NULL;\r
                }\r
        }\r
 }\r