Date: Fri, 11 May 2012 03:15:23 +0000 (UTC) From: Kevin Lo <kevlo@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r235256 - head/sys/dev/e1000 Message-ID: <201205110315.q4B3FNLX063722@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: kevlo Date: Fri May 11 03:15:22 2012 New Revision: 235256 URL: http://svn.freebsd.org/changeset/base/235256 Log: Initialize "error" to zero when it's declared in em_setup_receive_ring() Modified: head/sys/dev/e1000/if_em.c Modified: head/sys/dev/e1000/if_em.c ============================================================================== --- head/sys/dev/e1000/if_em.c Fri May 11 02:40:40 2012 (r235255) +++ head/sys/dev/e1000/if_em.c Fri May 11 03:15:22 2012 (r235256) @@ -4046,7 +4046,7 @@ em_setup_receive_ring(struct rx_ring *rx struct adapter *adapter = rxr->adapter; struct em_buffer *rxbuf; bus_dma_segment_t seg[1]; - int rsize, nsegs, error; + int rsize, nsegs, error = 0; #ifdef DEV_NETMAP struct netmap_adapter *na = NA(adapter->ifp); struct netmap_slot *slot;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201205110315.q4B3FNLX063722>