From: Jan Beulich Date: Mon, 23 May 2011 17:36:33 +0000 (+0100) Subject: sfc_netfront: fix an unused variable error X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=140c5ce272c6a9f1324a0cb90d6a3b732df86d62;p=legacy%2Flinux-2.6.18-xen.git 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 --- diff --git a/drivers/xen/sfc_netfront/accel_vi.c b/drivers/xen/sfc_netfront/accel_vi.c index f1373434..8e743209 100644 --- 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(netfront_accel_vnic *vnic, struct sk_buff *skb) } 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;