diff --git a/arch/arm/src/lc823450/lc823450_adc.c b/arch/arm/src/lc823450/lc823450_adc.c index 35a72929bf..18721898b8 100644 --- a/arch/arm/src/lc823450/lc823450_adc.c +++ b/arch/arm/src/lc823450/lc823450_adc.c @@ -320,7 +320,6 @@ static int lc823450_adc_isr(int irq, void *context, FAR void *arg) } #endif - /**************************************************************************** * Name: lc823450_adc_bind * diff --git a/net/socket/recvfrom.c b/net/socket/recvfrom.c index 1144bf6d6f..9bf0d706b5 100644 --- a/net/socket/recvfrom.c +++ b/net/socket/recvfrom.c @@ -159,13 +159,13 @@ ssize_t psock_recvfrom(FAR struct socket *psock, FAR void *buf, size_t len, psock->s_flags = _SS_SETSTATE(psock->s_flags, _SF_IDLE); - leave_cancellation_point(); if (ret < 0) { errcode = -ret; goto errout; } + leave_cancellation_point(); return ret; errout: