[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <01aa445f-96c0-48db-f0e4-22ba1a826fc6@users.sourceforge.net>
Date: Sun, 18 Sep 2016 08:21:14 +0200
From: SF Markus Elfring <elfring@...rs.sourceforge.net>
To: linux1394-devel@...ts.sourceforge.net,
Stefan Richter <stefanr@...6.in-berlin.de>
Cc: LKML <linux-kernel@...r.kernel.org>,
kernel-janitors@...r.kernel.org,
Julia Lawall <julia.lawall@...6.fr>
Subject: [PATCH 09/10] firewire-net: Rename jump labels in fwnet_pd_new()
From: Markus Elfring <elfring@...rs.sourceforge.net>
Date: Sat, 17 Sep 2016 22:48:46 +0200
Adjust jump labels according to the current Linux coding style convention.
Signed-off-by: Markus Elfring <elfring@...rs.sourceforge.net>
---
drivers/firewire/net.c | 13 ++++++-------
1 file changed, 6 insertions(+), 7 deletions(-)
diff --git a/drivers/firewire/net.c b/drivers/firewire/net.c
index 6dd3174..eb7ce5e 100644
--- a/drivers/firewire/net.c
+++ b/drivers/firewire/net.c
@@ -362,18 +362,18 @@ static struct fwnet_partial_datagram *fwnet_pd_new(struct net_device *net,
new = kmalloc(sizeof(*new), GFP_ATOMIC);
if (!new)
- goto fail;
+ goto exit;
INIT_LIST_HEAD(&new->fi_list);
fi = fwnet_frag_new(new, frag_off, frag_len);
if (fi == NULL)
- goto fail_w_new;
+ goto free_new;
new->datagram_label = datagram_label;
new->datagram_size = dg_size;
new->skb = dev_alloc_skb(dg_size + LL_RESERVED_SPACE(net));
if (new->skb == NULL)
- goto fail_w_fi;
+ goto free_fragment_info;
skb_reserve(new->skb, LL_RESERVED_SPACE(net));
new->pbuf = skb_put(new->skb, dg_size);
@@ -381,12 +381,11 @@ static struct fwnet_partial_datagram *fwnet_pd_new(struct net_device *net,
list_add_tail(&new->pd_link, &peer->pd_list);
return new;
-
-fail_w_fi:
+ free_fragment_info:
kfree(fi);
-fail_w_new:
+ free_new:
kfree(new);
-fail:
+ exit:
return NULL;
}
--
2.10.0
Powered by blists - more mailing lists