]> xenbits.xensource.com Git - legacy/linux-2.6.18-xen.git/commitdiff
sfc_netfront: fix an unused variable error
authorJan Beulich <jbeulich@novell.com>
Mon, 23 May 2011 17:36:33 +0000 (18:36 +0100)
committerJan Beulich <jbeulich@novell.com>
Mon, 23 May 2011 17:36:33 +0000 (18:36 +0100)
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>
drivers/xen/sfc_netfront/accel_vi.c

index f1373434e0decf73ba3c383f3e398f368bdc5aa6..8e7432097718efcbccf4585f43eb2247d1802128 100644 (file)
@@ -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;