Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp18664rdb; Mon, 4 Dec 2023 18:31:24 -0800 (PST) X-Google-Smtp-Source: AGHT+IFE7AHszj99TvgGGrEWRZ87IVBuwB6N/U0THlSTGvvqOa60vodMnrWFwURy36Oig76PS4vy X-Received: by 2002:a17:902:d4cc:b0:1d0:c41b:1d0c with SMTP id o12-20020a170902d4cc00b001d0c41b1d0cmr395081plg.75.1701743484373; Mon, 04 Dec 2023 18:31:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701743484; cv=none; d=google.com; s=arc-20160816; b=b1loavcse/hs1ThDEF9ySNsPTikSb+NMRuQzwqFYlZZypJgO5eUFT6CslnpBAjUUch u1sWqAVgnJGePq5OoMosnqDGbj1idacFl9E8F1qUbl9e2QdzdGvS3QWb5+y95jHwXqyz zUbJQ7xaixc0Rs+EutBQvf9hsKHGzQToa0mF9wN+I/rWVsoUTPTY7OhnGDI1Ajlhf3wH MVnW7vsI1BfcCy9o1lDYStPGfD+6DM5IrtKbh459BPA2S0IZsoAb4BawGI3YX5kXusBK ICWTMuVEfP18upHB266cu1LMUKI18b7wfnIKX+TV94Ry0P59QEw6WkmnWtbGa97R7mlJ Lu3w== 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 Return-Path: Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id l10-20020a170903244a00b001cf570ea116si9319714pls.353.2023.12.04.18.31.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Dec 2023 18:31:24 -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 CF1BD80781E9; Mon, 4 Dec 2023 18:30:40 -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:=20filemap:=20Remove=20unnecessary=20?= =?UTF-8?q?=E2=80=980=E2=80=99=20values=20from=20ret?= 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 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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:41 -0800 (PST) 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; -- 2.18.2