[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20210629085025.98437-1-lijian_8010a29@163.com>
Date: Tue, 29 Jun 2021 08:50:25 +0000
From: lijian_8010a29@....com
To: clm@...com, josef@...icpanda.com, dsterba@...e.com
Cc: linux-btrfs@...r.kernel.org, linux-kernel@...r.kernel.org,
lijian <lijian@...ong.com>
Subject: [PATCH] fs: btrfs: extent_map: removed unneeded variable
From: lijian <lijian@...ong.com>
removed unneeded variable 'ret'.
Signed-off-by: lijian <lijian@...ong.com>
---
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
Powered by blists - more mailing lists