summaryrefslogtreecommitdiffstats
path: root/hw/smc91c111.c
diff options
context:
space:
mode:
authorths <ths@c046a42c-6fe2-441c-8c8c-71466251a162>2006-12-21 17:23:49 +0000
committerths <ths@c046a42c-6fe2-441c-8c8c-71466251a162>2006-12-21 17:23:49 +0000
commit416b5d366d79431d07d2dff693f4b70d679ffc42 (patch)
treeddd1c5d2792bfbda35078980e7c0c066ace4a4a0 /hw/smc91c111.c
parentd8b20157fc3054b7bc4db7bcd8530e5c7ca9a06e (diff)
downloadhqemu-416b5d366d79431d07d2dff693f4b70d679ffc42.zip
hqemu-416b5d366d79431d07d2dff693f4b70d679ffc42.tar.gz
Avoid "unused variable" compiler warning.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2255 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'hw/smc91c111.c')
-rw-r--r--hw/smc91c111.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/hw/smc91c111.c b/hw/smc91c111.c
index 1ef5b56..0249cfe 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;
OpenPOWER on IntegriCloud