From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Jan Beulich" Subject: [PATCH] linux-2.6.18/sfc_netfront: fix an unused variable error Date: Mon, 23 May 2011 12:44:47 +0100 Message-ID: <4DDA64CF0200007800042D8E@vpn.id2.novell.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=__Part082492BF.0__=" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org This is a MIME message. If you are reading this text, you may want to consider changing to a mail reader or gateway that understands how to properly handle MIME multipart messages. --=__Part082492BF.0__= Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Make the code in netfront_accel_enqueue_skb_multi() match that in netfront_accel_enqueue_skb_single(). Signed-off-by: Jan Beulich --- 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(netfron } =09 rc =3D ef_vi_transmitv(&vnic->vi, iovecs, state.buffers, dma_id); + /* We checked for space already, so it really should succeed */ + BUG_ON(rc !=3D 0); =20 /* Track number of tx fastpath stats */ vnic->netdev_stats.fastpath_tx_bytes +=3D skb->len; --=__Part082492BF.0__= Content-Type: text/plain; name="xen-sfc-netfront-gcc46.patch" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="xen-sfc-netfront-gcc46.patch" Subject: xen/sfc_netfront: fix an unused variable error=0A=0AMake the code = in netfront_accel_enqueue_skb_multi() match that in=0Anetfront_accel_enqueu= e_skb_single().=0A=0ASigned-off-by: Jan Beulich =0A=0A= --- a/drivers/xen/sfc_netfront/accel_vi.c=0A+++ b/drivers/xen/sfc_netfront/= accel_vi.c=0A@@ -518,6 +518,8 @@ netfront_accel_enqueue_skb_multi(netfron= =0A }=0A =0A rc =3D ef_vi_transmitv(&vnic->vi, iovecs, = state.buffers, dma_id);=0A+ /* We checked for space already, so it = really should succeed */=0A+ BUG_ON(rc !=3D 0);=0A =0A /* Track = number of tx fastpath stats */=0A vnic->netdev_stats.fastpath_tx_byte= s +=3D skb->len;=0A --=__Part082492BF.0__= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --=__Part082492BF.0__=--