Skip to contentSkip to conversation

linux-2.6.18/sfc_netfront: fix an unused variable error

PATCH New Jan Beulich 1 participant 1 message May 23, 2011 Xen hypervisor interface

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 linux-2.6.18/sfc_netfront: fix an unused variable error

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

drivers/xen/sfc_netfront/accel_vi.c +2 -0
@@ -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;

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().

drivers/xen/sfc_netfront/accel_vi.c +2 -0
@@ -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;

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel