From: David Sterba <dsterba@suse.cz>
To: Dan Carpenter <dan.carpenter@linaro.org>
Cc: Chris Mason <clm@fb.com>, Josef Bacik <josef@toxicpanda.com>,
David Sterba <dsterba@suse.com>,
linux-btrfs@vger.kernel.org, linux-kernel@vger.kernel.org,
kernel-janitors@vger.kernel.org
Subject: Re: [PATCH] btrfs: return a literal instead of a variable
Date: Thu, 6 Mar 2025 09:29:35 +0100 [thread overview]
Message-ID: <20250306082935.GH5777@twin.jikos.cz> (raw)
In-Reply-To: <2b27721b-7ef9-482d-91bb-55a9fed2c0f7@stanley.mountain>
On Wed, Mar 05, 2025 at 06:01:57PM +0300, Dan Carpenter wrote:
> This is just a small clean up, it doesn't change how the code works.
> Originally this code had a goto so we needed to set "ret = 0;" but now
> it returns directly and so we can simplify it a bit by doing a
> "return 0;" and removing the assignment.
>
> Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Added to for-next, thanks.
prev parent reply other threads:[~2025-03-06 8:29 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-03-05 15:01 Dan Carpenter
2025-03-06 0:44 ` Anand Jain
2025-03-06 8:29 ` David Sterba [this message]
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=20250306082935.GH5777@twin.jikos.cz \
--to=dsterba@suse.cz \
--cc=clm@fb.com \
--cc=dan.carpenter@linaro.org \
--cc=dsterba@suse.com \
--cc=josef@toxicpanda.com \
--cc=kernel-janitors@vger.kernel.org \
--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®