lkml.org 
[lkml]   [2021]   [Nov]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH RESEND] nbd: code clean for nbd_genl_status()
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.

\
 
 \ /
  Last update: 2021-11-04 09:49    [W:0.166 / U:0.028 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site