WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

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

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [linux-2.6.18-xen] sfc_netfront: fix an unused variable error
From: Xen patchbot-linux-2.6.18-xen <patchbot@xxxxxxx>
Date: Mon, 23 May 2011 18:50:03 +0100
Delivery-date: Mon, 23 May 2011 10:50:29 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# 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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [linux-2.6.18-xen] sfc_netfront: fix an unused variable error, Xen patchbot-linux-2 . 6 . 18-xen <=