Commit 416b5d36 authored by ths's avatar ths
Browse files

Avoid "unused variable" compiler warning.


git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2255 c046a42c-6fe2-441c-8c8c-71466251a162
parent d8b20157
...@@ -159,7 +159,6 @@ static void smc91c111_do_tx(smc91c111_state *s) ...@@ -159,7 +159,6 @@ static void smc91c111_do_tx(smc91c111_state *s)
int len; int len;
int control; int control;
int add_crc; int add_crc;
uint32_t crc;
int packetnum; int packetnum;
uint8_t *p; uint8_t *p;
...@@ -192,6 +191,8 @@ static void smc91c111_do_tx(smc91c111_state *s) ...@@ -192,6 +191,8 @@ static void smc91c111_do_tx(smc91c111_state *s)
about. */ about. */
add_crc = (control & 0x10) || (s->tcr & TCR_NOCRC) == 0; add_crc = (control & 0x10) || (s->tcr & TCR_NOCRC) == 0;
if (add_crc) { if (add_crc) {
uint32_t crc;
crc = crc32(~0, p, len); crc = crc32(~0, p, len);
memcpy(p + len, &crc, 4); memcpy(p + len, &crc, 4);
len += 4; len += 4;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment