From patchwork Tue Dec 5 02:29:54 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Li zeming X-Patchwork-Id: 173675 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:bcd1:0:b0:403:3b70:6f57 with SMTP id r17csp3173613vqy; Mon, 4 Dec 2023 18:31:24 -0800 (PST) X-Google-Smtp-Source: AGHT+IFQkUZcvBgTXbcLMiIZcw7XRW+GYXI0mGJqr4Z8TMph0Z42ktlRykTTpaQBuq1rL4chmn3Q X-Received: by 2002:a17:902:b194:b0:1cf:f359:ce37 with SMTP id s20-20020a170902b19400b001cff359ce37mr1837605plr.2.1701743483886; Mon, 04 Dec 2023 18:31:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701743483; cv=none; d=google.com; s=arc-20160816; b=F/pXgXhzRJDe/MKiAYaEG4vfLZJvkHX6N8lLiqi46JMITG/IFq6sDpelFZqe7j3/i5 1/HBpBiIr9eaOp948z2TkoqtVObyS88+xRzTMdVhdJeYoB5e6RaUdWr+GjmZjSsK4EdO J3XkdEBcQRcK2yw8vC2i+kri2TuoCaoU9RnbKUtDerIHXx1S7dpaE7doFb0UwBdrq6Ov tZSJTNmVg22FEivXKRLjrbk3s4rvX0caiSEa/STZebLMu6ZrCJbECGylBClAg3gtAlRh IhmSKz1ByvuAnobDpIfn6aD9qAEWYXSr/3adbNVhoRpoQkwwE8OOkfxGzcvbggboGfQe STEg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=4pBb+JD7JogrxiJmhkwDYlkIOmny0D6eSniqOTAVfgA=; fh=it3QtjhTrVgfYrM/i2gj4890OeIU6JinTDDlhDaccZ8=; b=cb06iyN0gM8S1MYvi4Iy3R+EmTbcxCDojJfvjIQcqgOWr+oD+MHFz4MNFaZXtS1gmy Rvrw6UUigxiexVVxb3s83+GUHiUxoHlxe1hoBDvDObnOx93kiygwFNExIr5MO1Z3aL8I s1THVMcze3X5FSKKrWJ2j9jNU/SA/zPhRK1Y6yGSezg0nM9uM/9gUmp3lWz9bacxx7mX ZWcorA7Ly/eBwZ3pAvIn7/T8TAtOxSYrSAZMu5I5qjfGu1wLk/laCymz/bRAQqcJLXew /wWJtab5XJXXESQXo/wigVM5WhYe3kNkmXeWHqM8QCE53mOxZxyibWHzUSkOTQU3FrDF ec8g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id c4-20020a170902b68400b001d0a47b6eddsi2607075pls.615.2023.12.04.18.31.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Dec 2023 18:31:23 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id A50A880886AF; Mon, 4 Dec 2023 18:30:39 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1343967AbjLECa2 (ORCPT + 99 others); Mon, 4 Dec 2023 21:30:28 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40752 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346518AbjLECaK (ORCPT ); Mon, 4 Dec 2023 21:30:10 -0500 Received: from mail.nfschina.com (unknown [42.101.60.195]) by lindbergh.monkeyblade.net (Postfix) with SMTP id 08188D4D; Mon, 4 Dec 2023 18:30:14 -0800 (PST) Received: from localhost.localdomain (unknown [219.141.250.2]) by mail.nfschina.com (Maildata Gateway V2.8.8) with ESMTPA id CD83460598E85; Tue, 5 Dec 2023 10:29:57 +0800 (CST) X-MD-Sfrom: zeming@nfschina.com X-MD-SrcIP: 219.141.250.2 From: Li zeming To: willy@infradead.org, akpm@linux-foundation.org Cc: linux-fsdevel@vger.kernel.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org, Li zeming Subject: [PATCH] =?utf-8?q?mm=3A_filemap=3A_Remove_unnecessary_=E2=80=980?= =?utf-8?q?=E2=80=99_values_from_ret?= Date: Tue, 5 Dec 2023 10:29:54 +0800 Message-Id: <20231205022954.101045-1-zeming@nfschina.com> X-Mailer: git-send-email 2.18.2 MIME-Version: 1.0 X-Spam-Status: No, score=-1.1 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,RDNS_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Mon, 04 Dec 2023 18:30:39 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1784407375069918100 X-GMAIL-MSGID: 1784407375069918100 The ret variable can be defined without assigning a value, as it is assigned before use. Signed-off-by: Li zeming --- mm/filemap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mm/filemap.c b/mm/filemap.c index 582f5317ff717..114b7cb41e7e7 100644 --- a/mm/filemap.c +++ b/mm/filemap.c @@ -1641,7 +1641,7 @@ EXPORT_SYMBOL_GPL(__folio_lock_killable); static int __folio_lock_async(struct folio *folio, struct wait_page_queue *wait) { struct wait_queue_head *q = folio_waitqueue(folio); - int ret = 0; + int ret; wait->folio = folio; wait->bit_nr = PG_locked;