[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [linux-2.6.18-xen] sfc_netfront: fix an unused variable error



# HG changeset patch
# User Jan Beulich <jbeulich@xxxxxxxxxx>
# Date 1306172193 -3600
# Node ID 415a9b435fef2ac85ad9aebe1c3c534f6b40dc8a
# Parent  5df7af6c2cc294d76670b3d40ec400a27f007b1f
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@xxxxxxxxxx>
---


diff -r 5df7af6c2cc2 -r 415a9b435fef drivers/xen/sfc_netfront/accel_vi.c
--- a/drivers/xen/sfc_netfront/accel_vi.c       Fri May 20 15:53:56 2011 +0100
+++ b/drivers/xen/sfc_netfront/accel_vi.c       Mon May 23 18:36:33 2011 +0100
@@ -518,6 +518,8 @@
        }
        
        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-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.