Skip to content

Commit 0f4a196

Browse files
committed
bricks/virtualhub/mpvarianthal: remove duplicate event hook call
This removes a duplicate call of MICROPY_EVENT_POLL_HOOK inside of MP_HAL_RETRY_SYSCALL. Since the duplicate call was before reading errno, this could cause us to read an incorrect errno.
1 parent d00201f commit 0f4a196

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

bricks/virtualhub/mpvarianthal.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,6 @@ uint64_t pb_virtualhub_time_ns(void);
8484
ret = syscall; \
8585
MP_THREAD_GIL_ENTER(); \
8686
if (ret == -1) { \
87-
MICROPY_EVENT_POLL_HOOK \
8887
int err = errno; \
8988
if (err == EINTR) { \
9089
MICROPY_EVENT_POLL_HOOK \

0 commit comments

Comments
 (0)