io_uring: remove unneeded variable 'ret'
PATCH 1/1 io_uring: remove unneeded variable 'ret'
Fix the following coccicheck warning:
./fs/io_uring.c:8984:5-8: Unneeded variable: "ret". Return "0" on line 8998
Reported-by Abaci Robot <[email protected]>
Signed-off-by Yang Li <[email protected]>
--- fs/io_uring.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
fs/io_uring.c +1 -2
@@ -8981,7 +8981,6 @@ static unsigned long io_uring_nommu_get_unmapped_area(struct file *file,static int io_sqpoll_wait_sq (struct io_ring_ctx *ctx) { -int ret =0 ;DEFINE_WAIT (wait); do {
@@ -8995,7 +8994,7 @@ static int io_sqpoll_wait_sq(struct io_ring_ctx *ctx) }while (!signal_pending (current));finish_wait (&ctx->sqo_sq_wait, &wait); -return ret; +return 0 ; } static int io_get_ext_arg(unsigned flags, const void __user *argp, size_t *argsz,
Signature · 1 line
1.8.3.1
Quoted 3 lines · Yang Li
Fix the following coccicheck warning:
./fs/io_uring.c:8984:5-8: Unneeded variable: "ret". Return "0" on line 8998
Applied, thanks.
Signature · 1 line
Jens Axboe