From 36ddb46dbae2d50d550d5626c25ebcbe92842e17 Mon Sep 17 00:00:00 2001 From: yinshengkai Date: Tue, 27 Aug 2024 15:12:49 +0800 Subject: [PATCH] fs/poll: remove poll_teardown unused parameter Signed-off-by: yinshengkai Signed-off-by: ligd --- fs/vfs/fs_poll.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/fs/vfs/fs_poll.c b/fs/vfs/fs_poll.c index e288ce9a6cf..43f2740d421 100644 --- a/fs/vfs/fs_poll.c +++ b/fs/vfs/fs_poll.c @@ -136,10 +136,11 @@ static inline int poll_setup(FAR struct pollfd *fds, nfds_t nfds, ****************************************************************************/ static inline int poll_teardown(FAR struct pollfd *fds, nfds_t nfds, - FAR int *count, int ret) + FAR int *count) { unsigned int i; int status = OK; + int ret = OK; /* Process each descriptor in the list */ @@ -185,7 +186,7 @@ static void poll_cleanup(FAR void *arg) FAR struct pollfd_s *fdsinfo = (FAR struct pollfd_s *)arg; int count; - poll_teardown(fdsinfo->fds, fdsinfo->nfds, &count, OK); + poll_teardown(fdsinfo->fds, fdsinfo->nfds, &count); } /**************************************************************************** @@ -521,7 +522,7 @@ int poll(FAR struct pollfd *fds, nfds_t nfds, int timeout) * Preserve ret, if negative, since it holds the result of the wait. */ - ret2 = poll_teardown(kfds, nfds, &count, ret); + ret2 = poll_teardown(kfds, nfds, &count); if (ret2 < 0 && ret >= 0) { ret = ret2;