From f8d97aea9eb3577d27769510b0ebbc4e27080e4e Mon Sep 17 00:00:00 2001 From: Xiang Xiao Date: Sun, 30 Oct 2022 00:07:41 +0800 Subject: [PATCH] libnx: Remove the unnecessary invocation of _SEM_SETPROTOCOL Signed-off-by: Xiang Xiao --- libs/libnx/nxmu/nx_bitmap.c | 6 ------ libs/libnx/nxmu/nx_getrectangle.c | 6 ------ 2 files changed, 12 deletions(-) diff --git a/libs/libnx/nxmu/nx_bitmap.c b/libs/libnx/nxmu/nx_bitmap.c index 5988f9eb6e..4c39b626f2 100644 --- a/libs/libnx/nxmu/nx_bitmap.c +++ b/libs/libnx/nxmu/nx_bitmap.c @@ -102,12 +102,6 @@ int nx_bitmap(NXWINDOW hwnd, FAR const struct nxgl_rect_s *dest, return ret; } - /* The sem_done semaphore is used for signaling and, hence, should not have - * priority inheritance enabled. - */ - - _SEM_SETPROTOCOL(&sem_done, SEM_PRIO_NONE); - /* Forward the fill command to the server */ ret = nxmu_sendwindow(wnd, &outmsg, sizeof(struct nxsvrmsg_bitmap_s)); diff --git a/libs/libnx/nxmu/nx_getrectangle.c b/libs/libnx/nxmu/nx_getrectangle.c index 37071103fe..d84d1ec53f 100644 --- a/libs/libnx/nxmu/nx_getrectangle.c +++ b/libs/libnx/nxmu/nx_getrectangle.c @@ -97,12 +97,6 @@ int nx_getrectangle(NXWINDOW hwnd, FAR const struct nxgl_rect_s *rect, return ret; } - /* The sem_done semaphore is used for signaling and, hence, should not have - * priority inheritance enabled. - */ - - _SEM_SETPROTOCOL(&sem_done, SEM_PRIO_NONE); - /* Forward the fill command to the server */ ret = nxmu_sendwindow(wnd, &outmsg,