Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp954824pxj; Sat, 8 May 2021 03:48:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzIJT1B/PXp79LCWINBMRHWuvH516cT2xo0n5N25voVAqTvzLeriCFYOU7S+FAqFmSgNEdn X-Received: by 2002:a17:907:724d:: with SMTP id ds13mr15359229ejc.442.1620470883318; Sat, 08 May 2021 03:48:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620470883; cv=none; d=google.com; s=arc-20160816; b=px6vE0vUikoGIQKRrzrd3m36w/exiWs6+WeLiP99kW5pufZ217VYfjVVrqlvvBC1Rn QO4LpKDV9EdXQ5dg20O3UvCaOdrkU+7VNtyTmCueYs6PlkGWoJt+pVEa+GWX37PrXiGJ JEMDikDbDVBVOr3fThME8hQsD8f7pi1IIhtfsHkcfILFYMFNZuW2C8OtzAwcE7H8U45u XI2Yx2f7PI5AoZ7eAW6QylnCcmXhc5wbzeznHRJ4qIBxbFE+PjuP4m8k9yZV/5BHkZ3x BQIVuQGdMwbx14vet7s5xowKuqYBkBv3CVaY3yw+MsJAb1KuB1AbJt9Q3eGF8/cETyls uEgA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from; bh=KvYxNU2xzaa7JTbpsRHX7zhYqKHB/WtSWpJmFHJMuVc=; b=cX5TAWtNsYtFc34Bqdd7MTGt33TddkM3JUJefq0oXyftSCJc2Coq7R9f5sy1GO497M vwZGOSBDwVF4B6a684XRHjbKzxA/BB+eLVZKD+fnkV47JTp1BmHiLqhgWxV+RGUvnYG3 eFtA2v625DoV+xue8LkwhoX3YdF/3Ljda1laLdQ4MClk9L2Nto5XP+XoDKNN8KHqPjtH eLQXKOuentK+4k+PIX+/49mFkwaDx4g262BA686XhYEUVEB3/xh+M/WxsAN1SgqBE2YJ kZagjj+I6nVrXK45QJMDTvbk+Oa4Th6cqEVGKGcSAsxBsUhRRr/HreaTVbggiiUdSmdM ALUg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 15si3177043edx.383.2021.05.08.03.47.39; Sat, 08 May 2021 03:48:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230468AbhEHKkC (ORCPT + 99 others); Sat, 8 May 2021 06:40:02 -0400 Received: from out30-45.freemail.mail.aliyun.com ([115.124.30.45]:57955 "EHLO out30-45.freemail.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230234AbhEHKkB (ORCPT ); Sat, 8 May 2021 06:40:01 -0400 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R141e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e04423;MF=jiapeng.chong@linux.alibaba.com;NM=1;PH=DS;RN=6;SR=0;TI=SMTPD_---0UY8peFV_1620470331; Received: from j63c13417.sqa.eu95.tbsite.net(mailfrom:jiapeng.chong@linux.alibaba.com fp:SMTPD_---0UY8peFV_1620470331) by smtp.aliyun-inc.com(127.0.0.1); Sat, 08 May 2021 18:38:58 +0800 From: Jiapeng Chong To: clm@fb.com Cc: josef@toxicpanda.com, dsterba@suse.com, linux-btrfs@vger.kernel.org, linux-kernel@vger.kernel.org, Jiapeng Chong Subject: [PATCH] btrfs: Remove redundant assignment to ret Date: Sat, 8 May 2021 18:38:49 +0800 Message-Id: <1620470329-27792-1-git-send-email-jiapeng.chong@linux.alibaba.com> X-Mailer: git-send-email 1.8.3.1 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Variable ret is set to zero, but this value is never read as it is overwritten or not used later on, hence it is a redundant assignment and can be removed. Clean up the following clang-analyzer warning: fs/btrfs/extent_io.c:5357:4: warning: Value stored to 'ret' is never read [clang-analyzer-deadcode.DeadStores]. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- fs/btrfs/extent_io.c | 1 - 1 file changed, 1 deletion(-) diff --git a/fs/btrfs/extent_io.c b/fs/btrfs/extent_io.c index 074a78a..cea58be 100644 --- a/fs/btrfs/extent_io.c +++ b/fs/btrfs/extent_io.c @@ -5354,7 +5354,6 @@ int extent_fiemap(struct btrfs_inode *inode, struct fiemap_extent_info *fieinfo, goto out_free; if (ret) flags |= FIEMAP_EXTENT_SHARED; - ret = 0; } if (test_bit(EXTENT_FLAG_COMPRESSED, &em->flags)) flags |= FIEMAP_EXTENT_ENCODED; -- 1.8.3.1