Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1300102
| From | SF Markus Elfring <elfring@users.sourceforge.net> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH 2/5] xen-netback: Delete an unnecessary goto statement in connect_rings() |
| Date | 2016-01-02 19:00 +0100 |
| Message-ID | <qMyD8-2In-23@gated-at.bofh.it> (permalink) |
| References | <qEuGl-43C-5@gated-at.bofh.it> <qMyD7-2In-3@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
From: Markus Elfring <elfring@users.sourceforge.net>
Date: Sat, 2 Jan 2016 17:50:21 +0100
One goto statement referred to a source code position directly behind it.
Thus omit such an unnecessary jump.
Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
---
drivers/net/xen-netback/xenbus.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/drivers/net/xen-netback/xenbus.c b/drivers/net/xen-netback/xenbus.c
index 7f2895d..d4947e1 100644
--- a/drivers/net/xen-netback/xenbus.c
+++ b/drivers/net/xen-netback/xenbus.c
@@ -933,13 +933,11 @@ static int connect_rings(struct backend_info *be, struct xenvif_queue *queue)
/* Map the shared frame, irq etc. */
err = xenvif_connect(queue, tx_ring_ref, rx_ring_ref,
tx_evtchn, rx_evtchn);
- if (err) {
+ if (err)
xenbus_dev_fatal(dev, err,
"mapping shared-frames %lu/%lu port tx %u rx %u",
tx_ring_ref, rx_ring_ref,
tx_evtchn, rx_evtchn);
- goto err;
- }
err: /* Regular return falls through with err == 0 */
kfree(xspath);
--
2.6.3
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH 0/5] xen-netback: Fine-tuning for three function implementations SF Markus Elfring <elfring@users.sourceforge.net> - 2016-01-02 19:00 +0100 [PATCH 2/5] xen-netback: Delete an unnecessary goto statement in connect_rings() SF Markus Elfring <elfring@users.sourceforge.net> - 2016-01-02 19:00 +0100 [PATCH 5/5] xen-netback: Delete an unnecessary variable initialisation in xen_register_watchers() SF Markus Elfring <elfring@users.sourceforge.net> - 2016-01-02 19:10 +0100 Re: [PATCH 0/5] xen-netback: Fine-tuning for three function implementations Joe Perches <joe@perches.com> - 2016-01-03 02:40 +0100 Re: [PATCH 0/5] xen-netback: Fine-tuning for three function implementations Dan Carpenter <dan.carpenter@oracle.com> - 2016-01-04 10:50 +0100 Re: [PATCH 0/5] xen-netback: Fine-tuning for three function implementations Wei Liu <wei.liu2@citrix.com> - 2016-01-04 12:10 +0100
csiph-web