xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] linux-2.6.18/sfc_netfront: fix an unused variable error
@ 2011-05-23 11:44 Jan Beulich
  0 siblings, 0 replies; only message in thread
From: Jan Beulich @ 2011-05-23 11:44 UTC (permalink / raw)
  To: xen-devel@lists.xensource.com

[-- Attachment #1: Type: text/plain, Size: 575 bytes --]

Make the code in netfront_accel_enqueue_skb_multi() match that in
netfront_accel_enqueue_skb_single().

Signed-off-by: Jan Beulich <jbeulich@novell.com>

--- a/drivers/xen/sfc_netfront/accel_vi.c
+++ b/drivers/xen/sfc_netfront/accel_vi.c
@@ -518,6 +518,8 @@ netfront_accel_enqueue_skb_multi(netfron
 	}
 	
 	rc = ef_vi_transmitv(&vnic->vi, iovecs, state.buffers, dma_id);
+	/* We checked for space already, so it really should succeed */
+	BUG_ON(rc != 0);
 
 	/* Track number of tx fastpath stats */
 	vnic->netdev_stats.fastpath_tx_bytes += skb->len;




[-- Attachment #2: xen-sfc-netfront-gcc46.patch --]
[-- Type: text/plain, Size: 628 bytes --]

Subject: xen/sfc_netfront: fix an unused variable error

Make the code in netfront_accel_enqueue_skb_multi() match that in
netfront_accel_enqueue_skb_single().

Signed-off-by: Jan Beulich <jbeulich@novell.com>

--- a/drivers/xen/sfc_netfront/accel_vi.c
+++ b/drivers/xen/sfc_netfront/accel_vi.c
@@ -518,6 +518,8 @@ netfront_accel_enqueue_skb_multi(netfron
 	}
 	
 	rc = ef_vi_transmitv(&vnic->vi, iovecs, state.buffers, dma_id);
+	/* We checked for space already, so it really should succeed */
+	BUG_ON(rc != 0);
 
 	/* Track number of tx fastpath stats */
 	vnic->netdev_stats.fastpath_tx_bytes += skb->len;

[-- Attachment #3: Type: text/plain, Size: 138 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2011-05-23 11:44 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-05-23 11:44 [PATCH] linux-2.6.18/sfc_netfront: fix an unused variable error Jan Beulich

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).