diff options
author | Peter Crosthwaite <peter.crosthwaite@xilinx.com> | 2013-12-03 21:55:40 -0800 |
---|---|---|
committer | Peter Maydell <peter.maydell@linaro.org> | 2013-12-10 13:28:50 +0000 |
commit | 11785f5352d45c6ef3efe3349ade42387ccebd5d (patch) | |
tree | 44d639da32724740ec3c57a3b6f55d46e0013905 /hw/net | |
parent | 3b2c97f9916e15ef630e3f8449b1b10902bf9407 (diff) |
net/cadence_gem: Don't assert against 0 buffer address
This has no real hardware analog and asserting correctness of DMA
addresses is not a perhiperal level problem. Delete.
Signed-off-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com>
Message-id: fc02417eb1874cb05e4f20531c6203c5a00110f1.1386136219.git.peter.crosthwaite@xilinx.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'hw/net')
-rw-r--r-- | hw/net/cadence_gem.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/hw/net/cadence_gem.c b/hw/net/cadence_gem.c index b84ee60942..b0f3dbaa34 100644 --- a/hw/net/cadence_gem.c +++ b/hw/net/cadence_gem.c @@ -688,15 +688,6 @@ static ssize_t gem_receive(NetClientState *nc, const uint8_t *buf, size_t size) DB_PRINT("copy %d bytes to 0x%x\n", MIN(bytes_to_copy, rxbufsize), rx_desc_get_buffer(desc)); - /* - * Let's have QEMU lend a helping hand. - */ - if (rx_desc_get_buffer(desc) == 0) { - DB_PRINT("Invalid RX buffer (NULL) for descriptor 0x%x\n", - (unsigned)packet_desc_addr); - break; - } - /* Copy packet data to emulated DMA buffer */ cpu_physical_memory_write(rx_desc_get_buffer(desc) + rxbuf_offset, rxbuf_ptr, MIN(bytes_to_copy, rxbufsize)); |