Message ID | 1511148687-24909-4-git-send-email-jasowang@redhat.com |
---|---|
State | New |
Headers | show |
Series | [PULL,1/6] colo-compare: fix the dangerous assignment | expand |
diff --git a/hw/net/eepro100.c b/hw/net/eepro100.c index 91dd058..1c0def5 100644 --- a/hw/net/eepro100.c +++ b/hw/net/eepro100.c @@ -754,8 +754,8 @@ static void read_cb(EEPRO100State *s) static void tx_command(EEPRO100State *s) { - uint32_t tbd_array = le32_to_cpu(s->tx.tbd_array_addr); - uint16_t tcb_bytes = (le16_to_cpu(s->tx.tcb_bytes) & 0x3fff); + uint32_t tbd_array = s->tx.tbd_array_addr; + uint16_t tcb_bytes = s->tx.tcb_bytes & 0x3fff; /* Sends larger than MAX_ETH_FRAME_SIZE are allowed, up to 2600 bytes. */ uint8_t buf[2600]; uint16_t size = 0;