diff mbox series

io_uring: remove unused local list heads in NAPI functions

Message ID 0a0ae3e955aed0f3e3d29882fb3d3cb575e0009b.1722294947.git.olivier@trillion01.com (mailing list archive)
State New
Headers show
Series io_uring: remove unused local list heads in NAPI functions | expand

Commit Message

Olivier Langlois July 29, 2024, 11:13 p.m. UTC
remove 2 unused local variables

Signed-off-by: Olivier Langlois <olivier@trillion01.com>
---
 io_uring/napi.c | 2 --
 1 file changed, 2 deletions(-)

Comments

Pavel Begunkov July 30, 2024, 11 a.m. UTC | #1
On 7/30/24 00:13, Olivier Langlois wrote:
> remove 2 unused local variables

Reviewed-by: Pavel Begunkov <asml.silence@gmail.com>


> Signed-off-by: Olivier Langlois <olivier@trillion01.com>
> ---
>   io_uring/napi.c | 2 --
>   1 file changed, 2 deletions(-)
> 
> diff --git a/io_uring/napi.c b/io_uring/napi.c
> index 4fd6bb331e1e..a3dc3762008f 100644
> --- a/io_uring/napi.c
> +++ b/io_uring/napi.c
> @@ -205,7 +205,6 @@ void io_napi_init(struct io_ring_ctx *ctx)
>   void io_napi_free(struct io_ring_ctx *ctx)
>   {
>   	struct io_napi_entry *e;
> -	LIST_HEAD(napi_list);
>   	unsigned int i;
>   
>   	spin_lock(&ctx->napi_lock);
> @@ -315,7 +314,6 @@ void __io_napi_busy_loop(struct io_ring_ctx *ctx, struct io_wait_queue *iowq)
>    */
>   int io_napi_sqpoll_busy_poll(struct io_ring_ctx *ctx)
>   {
> -	LIST_HEAD(napi_list);
>   	bool is_stale = false;
>   
>   	if (!READ_ONCE(ctx->napi_busy_poll_dt))
Jens Axboe July 30, 2024, 12:20 p.m. UTC | #2
On Mon, 29 Jul 2024 19:13:35 -0400, Olivier Langlois wrote:
> remove 2 unused local variables
> 
> 

Applied, thanks!

[1/1] io_uring: remove unused local list heads in NAPI functions
      commit: c3fca4fb83f7c84cd1e1aa9fe3a0e220ce8f30fb

Best regards,
diff mbox series

Patch

diff --git a/io_uring/napi.c b/io_uring/napi.c
index 4fd6bb331e1e..a3dc3762008f 100644
--- a/io_uring/napi.c
+++ b/io_uring/napi.c
@@ -205,7 +205,6 @@  void io_napi_init(struct io_ring_ctx *ctx)
 void io_napi_free(struct io_ring_ctx *ctx)
 {
 	struct io_napi_entry *e;
-	LIST_HEAD(napi_list);
 	unsigned int i;
 
 	spin_lock(&ctx->napi_lock);
@@ -315,7 +314,6 @@  void __io_napi_busy_loop(struct io_ring_ctx *ctx, struct io_wait_queue *iowq)
  */
 int io_napi_sqpoll_busy_poll(struct io_ring_ctx *ctx)
 {
-	LIST_HEAD(napi_list);
 	bool is_stale = false;
 
 	if (!READ_ONCE(ctx->napi_busy_poll_dt))