Commit 416b5d366d79431d07d2dff693f4b70d679ffc42

Authored by ths
1 parent d8b20157

Avoid "unused variable" compiler warning.


git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2255 c046a42c-6fe2-441c-8c8c-71466251a162
Showing 1 changed file with 2 additions and 1 deletions
hw/smc91c111.c
@@ -159,7 +159,6 @@ static void smc91c111_do_tx(smc91c111_state *s) @@ -159,7 +159,6 @@ static void smc91c111_do_tx(smc91c111_state *s)
159 int len; 159 int len;
160 int control; 160 int control;
161 int add_crc; 161 int add_crc;
162 - uint32_t crc;  
163 int packetnum; 162 int packetnum;
164 uint8_t *p; 163 uint8_t *p;
165 164
@@ -192,6 +191,8 @@ static void smc91c111_do_tx(smc91c111_state *s) @@ -192,6 +191,8 @@ static void smc91c111_do_tx(smc91c111_state *s)
192 about. */ 191 about. */
193 add_crc = (control & 0x10) || (s->tcr & TCR_NOCRC) == 0; 192 add_crc = (control & 0x10) || (s->tcr & TCR_NOCRC) == 0;
194 if (add_crc) { 193 if (add_crc) {
  194 + uint32_t crc;
  195 +
195 crc = crc32(~0, p, len); 196 crc = crc32(~0, p, len);
196 memcpy(p + len, &crc, 4); 197 memcpy(p + len, &crc, 4);
197 len += 4; 198 len += 4;