rptun: BUG fix, should not destory the semaphore twice

This BUG is introduced in PR: https://github.com/apache/nuttx/pull/13172

Signed-off-by: Bowen Wang <wangbowen6@xiaomi.com>
This commit is contained in:
Bowen Wang 2024-09-18 17:20:56 +08:00 committed by Xiang Xiao
parent c76dfde744
commit d320dfd20f
1 changed files with 0 additions and 2 deletions

View File

@ -1111,8 +1111,6 @@ int rptun_initialize(FAR struct rptun_dev_s *dev)
return OK;
err_thread:
nxsem_destroy(&priv->semtx);
nxsem_destroy(&priv->semrx);
rpmsg_unregister(name, &priv->rpmsg);
err_driver: