From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 27AE7C433EF for ; Mon, 27 Sep 2021 06:17:31 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 0820A61157 for ; Mon, 27 Sep 2021 06:17:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232949AbhI0GTH (ORCPT ); Mon, 27 Sep 2021 02:19:07 -0400 Received: from out30-45.freemail.mail.aliyun.com ([115.124.30.45]:33829 "EHLO out30-45.freemail.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232450AbhI0GTG (ORCPT ); Mon, 27 Sep 2021 02:19:06 -0400 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R901e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e04357;MF=haoxu@linux.alibaba.com;NM=1;PH=DS;RN=4;SR=0;TI=SMTPD_---0UpiKFOp_1632723441; Received: from e18g09479.et15sqa.tbsite.net(mailfrom:haoxu@linux.alibaba.com fp:SMTPD_---0UpiKFOp_1632723441) by smtp.aliyun-inc.com(127.0.0.1); Mon, 27 Sep 2021 14:17:27 +0800 From: Hao Xu To: Jens Axboe Cc: io-uring@vger.kernel.org, Pavel Begunkov , Joseph Qi Subject: [PATCH 1/8] io-wq: code clean for io_wq_add_work_after() Date: Mon, 27 Sep 2021 14:17:14 +0800 Message-Id: <20210927061721.180806-2-haoxu@linux.alibaba.com> X-Mailer: git-send-email 2.24.4 In-Reply-To: <20210927061721.180806-1-haoxu@linux.alibaba.com> References: <20210927061721.180806-1-haoxu@linux.alibaba.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: io-uring@vger.kernel.org Remove a local variable. Signed-off-by: Hao Xu --- fs/io-wq.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/fs/io-wq.h b/fs/io-wq.h index bf5c4c533760..8369a51b65c0 100644 --- a/fs/io-wq.h +++ b/fs/io-wq.h @@ -33,11 +33,9 @@ static inline void wq_list_add_after(struct io_wq_work_node *node, struct io_wq_work_node *pos, struct io_wq_work_list *list) { - struct io_wq_work_node *next = pos->next; - + node->next = pos->next; pos->next = node; - node->next = next; - if (!next) + if (!node->next) list->last = node; } -- 2.24.4