Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp1720476pxb; Wed, 9 Feb 2022 03:05:12 -0800 (PST) X-Google-Smtp-Source: ABdhPJyyM6J3Y5kqt3Dloh6hIX5y8Or6PDbzh1SySQTz9qdZ9sVJytH0wNXFYceTT5xwdX1bwMgR X-Received: by 2002:a17:90b:1c8c:: with SMTP id oo12mr2793867pjb.238.1644404712375; Wed, 09 Feb 2022 03:05:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644404712; cv=none; d=google.com; s=arc-20160816; b=GIj8IuiQsaIEylPiL5W2Y9AjbFbsP9ZZjeVRWSoJul0Q5GaD6fQv5uljTLuYLzt9gd qUKSeNMK0cWP4AYIqJAFVWq3aoL9llR0YKj6RJq+8B2FLqbD8orvPWjfqJdTx08skWvx IIkJ5hqYCKyVbjTGvHqdM2WAXQfrBRjkEoyCgpJWm2tNJkuaX3XPg7E0s5rfOS06CipQ euSPghUchoewfWhsi6fCKMDOiMpgmyr5z3IIGD+Jiq5m8IoqP6GVXmGohkjo77/S+KGF 4cpPhpedIy4h+nerFVNGnDmBDUgwGMVdxmWYOxNKIX7ETyKRyn/zOgcVEelYSZBofTDy 86Hg== 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=f1CBHsqh/HrF5qrVBGvic6Xb/Wc03/BQwj0tohSge8Y=; b=orfTh6Vw2oJ0hcEtxhlxBH+/2PGb01g5GQr8UxIByoaYQukgWzqmoziCDnA0VJYAoH DVVvsiM2f1pPHAYD8UpbWEF71RDD6dUvUP8BEDxWclLIQodG+AaNgwUnxEaHZtP3L9YP VoxGjJ3Pvfcfj9YVpKmunhNL7LlY90z0d25OZx9pLihOthU6Q7zerhG6dKQ2wIvQG+sV gLFZLI//+baEQbnjppUenKWSzzoqUqaxprL8Iri4RAKDZNSEiTeR0Lw7k+cDEj0E3bby bybdXEaYiOtSjJilrIZ5mjY3r5wwsVMa6FTlU1VfGF6apVAUUC/9a7Yni7rwtDP7wSlB Z3kg== ARC-Authentication-Results: i=1; mx.google.com; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id c15si4554286pjv.5.2022.02.09.03.05.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Feb 2022 03:05:12 -0800 (PST) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id EB8F2E05EC6C; Wed, 9 Feb 2022 01:33:05 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1351973AbiBGKj2 (ORCPT + 99 others); Mon, 7 Feb 2022 05:39:28 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60178 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244742AbiBGKhr (ORCPT ); Mon, 7 Feb 2022 05:37:47 -0500 Received: from out30-44.freemail.mail.aliyun.com (out30-44.freemail.mail.aliyun.com [115.124.30.44]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5B91BC043181; Mon, 7 Feb 2022 02:37:46 -0800 (PST) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R101e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e04394;MF=jiapeng.chong@linux.alibaba.com;NM=1;PH=DS;RN=5;SR=0;TI=SMTPD_---0V3p8TzN_1644230260; Received: from localhost(mailfrom:jiapeng.chong@linux.alibaba.com fp:SMTPD_---0V3p8TzN_1644230260) by smtp.aliyun-inc.com(127.0.0.1); Mon, 07 Feb 2022 18:37:43 +0800 From: Jiapeng Chong To: konishi.ryusuke@gmail.com Cc: linux-nilfs@vger.kernel.org, linux-kernel@vger.kernel.org, Jiapeng Chong , Abaci Robot Subject: [PATCH] mm/fs: Remove redundant code Date: Mon, 7 Feb 2022 18:37:38 +0800 Message-Id: <20220207103738.103661-1-jiapeng.chong@linux.alibaba.com> X-Mailer: git-send-email 2.20.1.7.g153144c MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE,UNPARSEABLE_RELAY 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 Clean up the following smatch warning: fs/nilfs2/segbuf.c:358 nilfs_segbuf_submit_bio() warn: ignoring unreachable code. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- fs/nilfs2/segbuf.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/fs/nilfs2/segbuf.c b/fs/nilfs2/segbuf.c index 9e5dd6324ea1..50d7e2e4daed 100644 --- a/fs/nilfs2/segbuf.c +++ b/fs/nilfs2/segbuf.c @@ -341,7 +341,6 @@ static int nilfs_segbuf_submit_bio(struct nilfs_segment_buffer *segbuf, int mode_flags) { struct bio *bio = wi->bio; - int err; bio->bi_end_io = nilfs_end_bio_write; bio->bi_private = segbuf; @@ -354,9 +353,6 @@ static int nilfs_segbuf_submit_bio(struct nilfs_segment_buffer *segbuf, wi->nr_vecs = min(wi->max_pages, wi->rest_blocks); wi->start = wi->end; return 0; - - wi->bio = NULL; - return err; } static void nilfs_segbuf_prepare_write(struct nilfs_segment_buffer *segbuf, -- 2.20.1.7.g153144c