From: ths Date: Thu, 21 Dec 2006 17:23:49 +0000 (+0000) Subject: Avoid "unused variable" compiler warning. X-Git-Tag: release_0_9_1~1640 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=8a93bc8b89bc9cafc1b55caef5824ba518c42b2f;p=qemu-xen-4.5-testing.git Avoid "unused variable" compiler warning. --- diff --git a/hw/smc91c111.c b/hw/smc91c111.c index 1ef5b5689..0249cfe98 100644 --- a/hw/smc91c111.c +++ b/hw/smc91c111.c @@ -159,7 +159,6 @@ static void smc91c111_do_tx(smc91c111_state *s) int len; int control; int add_crc; - uint32_t crc; int packetnum; uint8_t *p; @@ -192,6 +191,8 @@ static void smc91c111_do_tx(smc91c111_state *s) about. */ add_crc = (control & 0x10) || (s->tcr & TCR_NOCRC) == 0; if (add_crc) { + uint32_t crc; + crc = crc32(~0, p, len); memcpy(p + len, &crc, 4); len += 4;