projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d8b2015
)
Avoid "unused variable" compiler warning.
author
ths
<ths@c046a42c-6fe2-441c-8c8c-71466251a162>
Thu, 21 Dec 2006 17:23:49 +0000
(17:23 +0000)
committer
ths
<ths@c046a42c-6fe2-441c-8c8c-71466251a162>
Thu, 21 Dec 2006 17:23:49 +0000
(17:23 +0000)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2255
c046a42c
-6fe2-441c-8c8c-
71466251a162
hw/smc91c111.c
patch
|
blob
|
history
diff --git
a/hw/smc91c111.c
b/hw/smc91c111.c
index 1ef5b568924569b94e1e69272dd254ee7dba7bad..0249cfe98b2953d842b57181ad594093e9ae274d 100644
(file)
--- 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;