From: Christoph Hellwig <hch@infradead.org>
To: Wu Bo <wubo40@huawei.com>
Cc: josef@toxicpanda.com, axboe@kernel.dk,
linux-block@vger.kernel.org, nbd@other.debian.org,
linux-kernel@vger.kernel.org, linfeilong@huawei.com
Subject: Re: [PATCH RESEND] nbd: code clean for nbd_genl_status()
Date: Thu, 4 Nov 2021 01:48:35 -0700 [thread overview]
Message-ID: <YYOeYwPlLnn7JR+W@infradead.org> (raw)
In-Reply-To: <1636000703-13217-1-git-send-email-wubo40@huawei.com>
On Thu, Nov 04, 2021 at 12:38:23PM +0800, Wu Bo wrote:
> if (!reply_head) {
> - nlmsg_free(reply);
> goto out;
> }
Please also drop the now pointless braces.
> out:
> + if (reply)
> + nlmsg_free(reply);
Please just use a different label for just unlocking vs also freeing
the reply.
next prev parent reply other threads:[~2021-11-04 8:48 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-11-04 4:38 [PATCH RESEND] nbd: code clean for nbd_genl_status() Wu Bo
2021-11-04 8:48 ` Christoph Hellwig [this message]
2021-11-05 1:46 ` Wu Bo
2021-11-05 10:01 ` Josef Bacik
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=YYOeYwPlLnn7JR+W@infradead.org \
--to=hch@infradead.org \
--cc=axboe@kernel.dk \
--cc=josef@toxicpanda.com \
--cc=linfeilong@huawei.com \
--cc=linux-block@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=nbd@other.debian.org \
--cc=wubo40@huawei.com \
/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