Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp4226278pxv; Tue, 29 Jun 2021 01:53:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxpIlYWy+qrwosSQyJ8kkzx3vJFxuvki4bQq5m4BlWPKG677H16W8SKKSUE6AgHkl4tQy72 X-Received: by 2002:a05:6402:1103:: with SMTP id u3mr39238676edv.342.1624956789411; Tue, 29 Jun 2021 01:53:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624956789; cv=none; d=google.com; s=arc-20160816; b=BFkat9J55+odIYYTe/P/b0roA95vuuONI6WNZdCEsSm1+J6ruwACYRMiAbY4VdOvat slPZoJWSGfUWMt3yGDXT9mOwLtqJbE5gtjlkPr0aSbAYDal2a1S0hUENDZ+R1HQFzd78 zJdtzMmDXRymwJ05+jy13IZI1RE6YVZKy3Dzs/lT4PXL0UKGay9VULVOsP4XxTAS1ewL 05aFuQtnPd0SvDZgZyKDOHqgCJLVH38egey1SrfqnQ6qBe96MJDCo3BQX9Qk6iWKTCm0 OEsAnWTW8gD7Dvfe1TkHSKn+daZj02NqeOUr2h19zfG14zrKYqMX7LWzKjLBw55NGNoP lUWg== 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 :dkim-signature; bh=Cue9Tz+26Mw1WyK0oj/mT043sOqq/LAAEDvO/pxLwCQ=; b=P5lECCURl2kvDCBIbnd/RYFiZ8wQ+Ga7S/ExTmZ2C5B1BHXaqKHMGWoMP0gR5ydRON 9yzny1v71ytY0hw2Hn5eFFHwl5nBXWFji6DXFtUY+vHGwqGehNe7Q0CVKE+y2jNvGC5w seEMMATEX07UAF3sJfViL+WgZHcyT658E7BT764TYYP/f/wmKjpkgU65Dw1FPUbJP06X JUJRKdJ27l2qyk0DVf4hEYyeYz9oAzu+CW8Kfbeyn/+o40nRCWPn/uE+FTy83h9wmTI6 kxjwZ2YSMWKq955c4/Pqo6lTvASqH/K3XtHKuVwJNS1kOWeJTD8z4KMTrDi6ElRIAbKn 7zlg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@163.com header.s=s110527 header.b=EyqH6XML; 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=pass (p=NONE sp=NONE dis=NONE) header.from=163.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dm9si9522565ejc.309.2021.06.29.01.52.44; Tue, 29 Jun 2021 01:53:09 -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; dkim=pass header.i=@163.com header.s=s110527 header.b=EyqH6XML; 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=pass (p=NONE sp=NONE dis=NONE) header.from=163.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232499AbhF2IyJ (ORCPT + 99 others); Tue, 29 Jun 2021 04:54:09 -0400 Received: from m12-18.163.com ([220.181.12.18]:41754 "EHLO m12-18.163.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232429AbhF2IyI (ORCPT ); Tue, 29 Jun 2021 04:54:08 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=From:Subject:Date:Message-Id; bh=Cue9Tz+26Mw1WyK0oj /mT043sOqq/LAAEDvO/pxLwCQ=; b=EyqH6XMLY1TTtVyEmyFSD4aYV+o91mSI+s n8CWW4x+GLv1huQ/R9oY+bNhguWjE0iWF7NzSJGSsPidluyM4DaB+CX3ZBPlDM32 0y3UmQjyTfUg5hMnY8pmhJhY4Jd3u5NhKs95+b+NdRlPqjbYk6tBDC15Ygmf+al8 ssVdR9nX8= Received: from localhost.localdomain (unknown [218.17.89.92]) by smtp14 (Coremail) with SMTP id EsCowADX3Mzm3tpg8GJEsA--.41226S2; Tue, 29 Jun 2021 16:50:47 +0800 (CST) From: lijian_8010a29@163.com To: clm@fb.com, josef@toxicpanda.com, dsterba@suse.com Cc: linux-btrfs@vger.kernel.org, linux-kernel@vger.kernel.org, lijian Subject: [PATCH] fs: btrfs: extent_map: removed unneeded variable Date: Tue, 29 Jun 2021 08:50:25 +0000 Message-Id: <20210629085025.98437-1-lijian_8010a29@163.com> X-Mailer: git-send-email 2.17.1 X-CM-TRANSID: EsCowADX3Mzm3tpg8GJEsA--.41226S2 X-Coremail-Antispam: 1Uf129KBjvdXoW7Jr45Jw43Aw15JrWUZw43KFg_yoWfCrb_JF 4xAr97GF45Kw4Y9ryqkwnrXrWvqr4UuF1aq3yUtrnxAr1UXa1UZws2yrn8tayrCr4UAF9r GF4qqF1jkF1xujkaLaAFLSUrUUUUUb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUvcSsGvfC2KfnxnUUI43ZEXa7IU5bmRUUUUUU== X-Originating-IP: [218.17.89.92] X-CM-SenderInfo: 5olmxttqbyiikqdsmqqrwthudrp/1tbiHQfAUFSIrVxuhwAAsO Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: lijian removed unneeded variable 'ret'. Signed-off-by: lijian --- fs/btrfs/extent_map.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/fs/btrfs/extent_map.c b/fs/btrfs/extent_map.c index 4a8e02f7b6c7..70d3e76e30c5 100644 --- a/fs/btrfs/extent_map.c +++ b/fs/btrfs/extent_map.c @@ -296,7 +296,6 @@ static void try_merge_map(struct extent_map_tree *tree, struct extent_map *em) int unpin_extent_cache(struct extent_map_tree *tree, u64 start, u64 len, u64 gen) { - int ret = 0; struct extent_map *em; bool prealloc = false; @@ -328,8 +327,7 @@ int unpin_extent_cache(struct extent_map_tree *tree, u64 start, u64 len, free_extent_map(em); out: write_unlock(&tree->lock); - return ret; - + return 0; } void clear_em_logging(struct extent_map_tree *tree, struct extent_map *em) -- 2.17.1