summaryrefslogtreecommitdiff
path: root/hw/net/cadence_gem.c
diff options
context:
space:
mode:
authorPeter Crosthwaite <peter.crosthwaite@xilinx.com>2014-05-26 01:39:29 -0700
committerMichael Tokarev <mjt@tls.msk.ru>2014-06-10 19:39:34 +0400
commitef18c2f54ee6ac3df3e8617958bcdb53ee9e8e06 (patch)
tree39212e9549e83ed16c32b79c46efbd59ff990a58 /hw/net/cadence_gem.c
parent3048ed6aac8bd7622e1f9c82ebe83f819b5d6b75 (diff)
downloadqemu-ef18c2f54ee6ac3df3e8617958bcdb53ee9e8e06.tar.gz
qemu-ef18c2f54ee6ac3df3e8617958bcdb53ee9e8e06.tar.bz2
qemu-ef18c2f54ee6ac3df3e8617958bcdb53ee9e8e06.zip
net: cadence_gem: Remove &desc[0] usages
Just use desc instead. Signed-off-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com> Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
Diffstat (limited to 'hw/net/cadence_gem.c')
-rw-r--r--hw/net/cadence_gem.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/net/cadence_gem.c b/hw/net/cadence_gem.c
index fe40b4eca1..de26609c9d 100644
--- a/hw/net/cadence_gem.c
+++ b/hw/net/cadence_gem.c
@@ -883,7 +883,7 @@ static void gem_transmit(GemState *s)
DB_PRINT("read descriptor 0x%" HWADDR_PRIx "\n", packet_desc_addr);
cpu_physical_memory_read(packet_desc_addr,
- (uint8_t *)&desc[0], sizeof(desc));
+ (uint8_t *)desc, sizeof(desc));
/* Handle all descriptors owned by hardware */
while (tx_desc_get_used(desc) == 0) {
@@ -966,7 +966,7 @@ static void gem_transmit(GemState *s)
}
DB_PRINT("read descriptor 0x%" HWADDR_PRIx "\n", packet_desc_addr);
cpu_physical_memory_read(packet_desc_addr,
- (uint8_t *)&desc[0], sizeof(desc));
+ (uint8_t *)desc, sizeof(desc));
}
if (tx_desc_get_used(desc)) {