From: baomingtong001@208suo.com
To: clm@fb.com, josef@toxicpanda.com, dsterba@suse.com
Cc: linux-btrfs@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: [PATCH] btrfs: remove unneeded variable from unpin_extent_cache()
Date: Wed, 14 Jun 2023 14:59:11 +0800 [thread overview]
Message-ID: <a1c89487cc2839474f232ab140a96e3b@208suo.com> (raw)
In-Reply-To: <20230614065736.22353-1-luojianhong@cdjrlc.com>
fix the following coccicheck warning:
fs/btrfs/extent_map.c:298:5-8: Unneeded variable: "ret". Return "0".
Signed-off-by: Mingtong Bao <baomingtong001@208suo.com>
---
fs/btrfs/extent_map.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/fs/btrfs/extent_map.c b/fs/btrfs/extent_map.c
index 0cdb3e86f29b..f3e9aaeb9956 100644
--- a/fs/btrfs/extent_map.c
+++ b/fs/btrfs/extent_map.c
@@ -295,7 +295,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;
@@ -327,7 +326,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;
}
next parent reply other threads:[~2023-06-14 6:59 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20230614065736.22353-1-luojianhong@cdjrlc.com>
2023-06-14 6:59 ` baomingtong001 [this message]
2023-06-14 7:03 ` Christoph Hellwig
2023-06-14 7:09 ` Qu Wenruo
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=a1c89487cc2839474f232ab140a96e3b@208suo.com \
--to=baomingtong001@208suo.com \
--cc=clm@fb.com \
--cc=dsterba@suse.com \
--cc=josef@toxicpanda.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®