Message ID | 20230912123744.3929609-5-colin.i.king@gmail.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9ecd:0:b0:3f2:4152:657d with SMTP id t13csp867752vqx; Tue, 12 Sep 2023 22:34:42 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGGd7GIyg7/MbYjMnSZCYM23hRispMgM6awl93aj8PnxF1qERrKjZmZoeuaGCti+u4yT4Ke X-Received: by 2002:a05:6a21:4984:b0:13f:b028:789c with SMTP id ax4-20020a056a21498400b0013fb028789cmr1043506pzc.5.1694583281821; Tue, 12 Sep 2023 22:34:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694583281; cv=none; d=google.com; s=arc-20160816; b=V42rm5axt+uEQqmS/Lm6makx3jJjXpySm5gXSxQYp6CE5BwmD0zAMtu/s4JS5He4LU uXJkV7kDR9sfYA9fuasgzWdDiQpPl5ud5fXt1kVreDUfBIWVL170o1iNWe3wn4w3bGyh fFuowdqbmI8BTubTfPv3mp1+aRkKHgVG+mEP2k8hY6wXKeYNWPXi0wub7td70/oH2gLh 9rTuNW8G7R1AhaSCPYy6LEeQDRJ1bCVSjdnwRbQ3a83jYVC4W4wpYrZ42d4CrgUqOvhD aylkk0ZBmEAUsALv5/1PKyUAb9dc+lb+Okk/+r/P9pMUbwENTzUWfBNd3n6higsSz7XW VYbQ== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=49e+l1Yidi/qhSW+/Oluai/nUug0SULS4Us9G5sFvjU=; fh=XG4WW3CNAL509GDoc/W3Ryl++WqlrKFHTUxG5J6uH4c=; b=rpT26im6do23OgGa4ayzyL7JTYs+QmTzPC1o9+sIb0p9E9m1f3JmUJ3+x7okRs5SLm /6eOrvk/QYgvD4uwhc2EXGVkBorBNQe3DUG+HQoPG2sYy9zITnHmIhcfpflopHsOHffj ieEwTTnWz90shAT1+SaNlPdBY96uK53WeQMTHEppmGwiLcoNFIcX6GO1J1EH8qrH1mHz R2LimMpISMmpn2tIejFQan6tQhW2MkKOObJC2GKq3tFWc09gQRblYKs3I9MBfvhk/I41 qXqtiM0cvYlyGtzsjmlq4GjcvmblV6P8CTx+5gxxDU6HWp3Pyl7IIyT4U9j1iQ2tUIn9 qzHw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=FLQZlfM1; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id cp15-20020a056a00348f00b0068c005fcd0fsi9403538pfb.340.2023.09.12.22.34.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Sep 2023 22:34:41 -0700 (PDT) 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; dkim=pass header.i=@gmail.com header.s=20221208 header.b=FLQZlfM1; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 584F482F0BC8; Tue, 12 Sep 2023 05:38:10 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.8 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235286AbjILMiE (ORCPT <rfc822;pwkd43@gmail.com> + 37 others); Tue, 12 Sep 2023 08:38:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56322 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235241AbjILMh4 (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Tue, 12 Sep 2023 08:37:56 -0400 Received: from mail-wr1-x42f.google.com (mail-wr1-x42f.google.com [IPv6:2a00:1450:4864:20::42f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3DA6310D5; Tue, 12 Sep 2023 05:37:52 -0700 (PDT) Received: by mail-wr1-x42f.google.com with SMTP id ffacd0b85a97d-313e742a787so3508642f8f.1; Tue, 12 Sep 2023 05:37:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1694522270; x=1695127070; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=49e+l1Yidi/qhSW+/Oluai/nUug0SULS4Us9G5sFvjU=; b=FLQZlfM159anfLTemEMPJnC59yNZNoIRVg6n4xlQB2R+fzEU1mdmOKczXSuINLagUV 70b4XPP6kSnBJEeo5G8Qkw7ye805tqeHUqwSPAknHp7BFpfFCa6d76K41meBqGahJQ+f 9BWqmvEGkZDCYM8tS0KKOKqcUgp/XVWzPT1w2vBZOfimiRls3NHytLkLMdEdSjMon4Gl 06eyzrY7YVG96srJofl2pfvLlvmUSE6+QvnEnlWxkwzEHl3npwxkbKRGs4KAYTZApxBS ZPDHibw+FMRMnXWdZ1anj+z9ZsAc9ZXZ2EpjQOPIEyTV5krtsXCAhxAuY/OEKC8XASoh fD2A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694522270; x=1695127070; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=49e+l1Yidi/qhSW+/Oluai/nUug0SULS4Us9G5sFvjU=; b=QNWac7/vcYEBhvjkQO/3jMW7TqyU810ws9m/CyirFSfOkarzrSQcuLeEpnhYmdRuTt /gOSB7FoFsbem+UboeHNx1bjToFav0oN1rWZbfZkAruK6hSlyWw8PaUI0LEkTzudkycc jqOG8YHo5uKKZGamWKtrRbMuNk1od+NqC8WqjElbMqSxSC06TxqDZRo3e18fmEtpLWpq Ds+1Sn0OqpuJCzNgBSTXDPNV126gsgM2zaajc9xDcWSgVMTg746GZ2oK6t6fqa7hMxgW VTTBn/QZRis6viRyd6YsOeqJcfYwPS/C4P6lbl+aQyKYsazj5rGFLlmXMSWU4jibO0Av WDgw== X-Gm-Message-State: AOJu0YzUytbqWDuIrUyss/5FafnsqsYuepzJRSp5lGbAvaLH7RraHWz+ XGhBUeBUdnleFyZ7gislqAY= X-Received: by 2002:a5d:594f:0:b0:31a:dbd8:95dd with SMTP id e15-20020a5d594f000000b0031adbd895ddmr1647946wri.29.1694522270650; Tue, 12 Sep 2023 05:37:50 -0700 (PDT) Received: from localhost (cpc154979-craw9-2-0-cust193.16-3.cable.virginm.net. [80.193.200.194]) by smtp.gmail.com with ESMTPSA id y13-20020adffa4d000000b0031f5f0d0be0sm12660276wrr.31.2023.09.12.05.37.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Sep 2023 05:37:50 -0700 (PDT) From: Colin Ian King <colin.i.king@gmail.com> To: Kent Overstreet <kent.overstreet@linux.dev>, Brian Foster <bfoster@redhat.com>, linux-bcachefs@vger.kernel.org Cc: kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 4/5][next] bcachefs: remove duplicated assignment to variable offset_into_extent Date: Tue, 12 Sep 2023 13:37:43 +0100 Message-Id: <20230912123744.3929609-5-colin.i.king@gmail.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230912123744.3929609-1-colin.i.king@gmail.com> References: <20230912123744.3929609-1-colin.i.king@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> 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]); Tue, 12 Sep 2023 05:38:10 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1776899359382184656 X-GMAIL-MSGID: 1776899359382184656 |
Series |
bcachefs: clean up some redundant assignments
|
|
Commit Message
Colin Ian King
Sept. 12, 2023, 12:37 p.m. UTC
Variable offset_into_extent is being assigned to zero and a few
statements later it is being re-assigned again to the save value.
The second assignment is redundant and can be removed. Cleans up
clang-scan build warning:
fs/bcachefs/io.c:2722:3: warning: Value stored to 'offset_into_extent'
is never read [deadcode.DeadStores]
Signed-off-by: Colin Ian King <colin.i.king@gmail.com>
---
fs/bcachefs/io.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/fs/bcachefs/io.c b/fs/bcachefs/io.c index 3c614c864b6e..3b827c8dbf12 100644 --- a/fs/bcachefs/io.c +++ b/fs/bcachefs/io.c @@ -2724,7 +2724,6 @@ int __bch2_read_extent(struct btree_trans *trans, struct bch_read_bio *orig, pick.crc.uncompressed_size = bvec_iter_sectors(iter); pick.crc.offset = 0; pick.crc.live_size = bvec_iter_sectors(iter); - offset_into_extent = 0; } get_bio: if (rbio) {