diff --git a/arch/sim/src/sim/up_hcitty.c b/arch/sim/src/sim/up_hcitty.c index b592ace484..918fee9de1 100644 --- a/arch/sim/src/sim/up_hcitty.c +++ b/arch/sim/src/sim/up_hcitty.c @@ -126,15 +126,8 @@ static inline void bthcitty_post(FAR sem_t *sem) static void bthcitty_pollnotify(FAR struct bthcitty_s *dev, pollevent_t eventset) { - int ret; int i; - ret = nxsem_wait_uninterruptible(&dev->fdslock); - if (ret < 0) - { - return; - } - for (i = 0; i < CONFIG_HCI_NPOLLWAITERS; i++) { FAR struct pollfd *fds = dev->fds[i]; @@ -150,7 +143,6 @@ static void bthcitty_pollnotify(FAR struct bthcitty_s *dev, } } - nxsem_post(&dev->fdslock); bthcitty_post(&dev->recvsem); }