MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
* Return directly after a call of the function “genlmsg_new” failed
  at the beginning.
* Delete the label “fail” which became unnecessary
  with this refactoring.
Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Signed-off-by: Steve French <stfrench@microsoft.com>
        int ret;
 
        skb = genlmsg_new(NLMSG_DEFAULT_SIZE, GFP_KERNEL);
-       if (skb == NULL) {
-               ret = -ENOMEM;
-               goto fail;
-       }
+       if (!skb)
+               return -ENOMEM;
 
        hdr = genlmsg_put(skb, 0, 0, &cifs_genl_family, 0, CIFS_GENL_CMD_SWN_REGISTER);
        if (hdr == NULL) {
 nlmsg_fail:
        genlmsg_cancel(skb, hdr);
        nlmsg_free(skb);
-fail:
        return ret;
 }