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 <lijian@yulong.com>
Subject: [PATCH] fs: btrfs: extent_map: removed unneeded variable
Date: Tue, 29 Jun 2021 08:50:25 +0000 [thread overview]
Message-ID: <20210629085025.98437-1-lijian_8010a29@163.com> (raw)
From: lijian <lijian@yulong.com>
removed unneeded variable 'ret'.
Signed-off-by: lijian <lijian@yulong.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
next reply other threads:[~2021-06-29 8:51 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-06-29 8:50 lijian_8010a29 [this message]
2021-06-29 9:04 ` [PATCH] fs: btrfs: extent_map: removed unneeded variable Johannes Thumshirn
2021-06-30 9:59 ` David Sterba
2021-06-30 11:17 ` Johannes Thumshirn
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20210629085025.98437-1-lijian_8010a29@163.com \
--to=lijian_8010a29@163.com \
--cc=clm@fb.com \
--cc=dsterba@suse.com \
--cc=josef@toxicpanda.com \
--cc=lijian@yulong.com \
--cc=linux-btrfs@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.