Fix warning when compiling with gcc46:

error: variable 'extra_async_bytes' set but not used

Approved by:    dim, cperciva (mentor, blanket for pre-mentorship already-approved commits)
MFC After:	3 days
This commit is contained in:
Eitan Adler 2012-01-20 01:37:39 +00:00
parent 7268c7daff
commit e3febf407d
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=230348

View File

@ -417,7 +417,7 @@ lqr_LayerPush(struct bundle *b __unused, struct link *l, struct mbuf *bp,
int pri __unused, u_short *proto)
{
struct physical *p = link2physical(l);
int len, layer, extra_async_bytes;
int len, layer;
if (!p) {
/* Oops - can't happen :-] */
@ -445,7 +445,6 @@ lqr_LayerPush(struct bundle *b __unused, struct link *l, struct mbuf *bp,
* acf layers (to avoid alignment issues), so deal with this too.
*/
extra_async_bytes = 0;
p->hdlc.lqm.ifOutUniPackets++;
p->hdlc.lqm.ifOutOctets += len + 1; /* plus 1 flag octet! */
for (layer = 0; layer < l->nlayers; layer++)