aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--os/io/platforms/AT91SAM7X/sam7x_emac.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/os/io/platforms/AT91SAM7X/sam7x_emac.c b/os/io/platforms/AT91SAM7X/sam7x_emac.c
index d265330d8..bf7770de8 100644
--- a/os/io/platforms/AT91SAM7X/sam7x_emac.c
+++ b/os/io/platforms/AT91SAM7X/sam7x_emac.c
@@ -304,7 +304,7 @@ BufDescriptorEntry *EMACGetTransmitBuffer(void) {
if (!(cptr->w2 & W2_T_USED) ||
(cptr->w2 & W2_T_LOCKED)) {
chSysUnlock();
- return FALSE;
+ return NULL;
}
cptr->w2 |= W2_T_LOCKED; /* Locks the buffer while copying.*/
if (++txptr >= &tent[EMAC_TRANSMIT_BUFFERS])