[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PULL 04/25] net: cadence_gem: Remove &desc[0] usages
From: |
Michael Tokarev |
Subject: |
[Qemu-devel] [PULL 04/25] net: cadence_gem: Remove &desc[0] usages |
Date: |
Tue, 10 Jun 2014 20:08:22 +0400 |
From: Peter Crosthwaite <address@hidden>
Just use desc instead.
Signed-off-by: Peter Crosthwaite <address@hidden>
Signed-off-by: Michael Tokarev <address@hidden>
---
hw/net/cadence_gem.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/hw/net/cadence_gem.c b/hw/net/cadence_gem.c
index fe40b4e..de26609 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)) {
--
1.7.10.4
- [Qemu-devel] [PULL 00/25] Trivial patches for 2014-06-10, Michael Tokarev, 2014/06/10
- [Qemu-devel] [PULL 02/25] net: cadence_gem: Add Tx descriptor fetch printf, Michael Tokarev, 2014/06/10
- [Qemu-devel] [PULL 06/25] slirp: Remove unused zero_ethaddr[] variable, Michael Tokarev, 2014/06/10
- [Qemu-devel] [PULL 05/25] qtest: fix hex2nib for capital characters, Michael Tokarev, 2014/06/10
- [Qemu-devel] [PULL 04/25] net: cadence_gem: Remove &desc[0] usages,
Michael Tokarev <=
- [Qemu-devel] [PULL 10/25] hw/dma/xilinx_axidma: Remove unused stream_halted() function, Michael Tokarev, 2014/06/10
- [Qemu-devel] [PULL 19/25] smbios: use g_free directly on NULL pointers, Michael Tokarev, 2014/06/10
- [Qemu-devel] [PULL 22/25] libcacard: Clean up dead stores before g_free(), Michael Tokarev, 2014/06/10
- [Qemu-devel] [PULL 23/25] migration: Plug memory leak in migrate-set-cache-size command, Michael Tokarev, 2014/06/10
- [Qemu-devel] [PULL 21/25] libcacard: Drop superfluous conditionals around g_free(), Michael Tokarev, 2014/06/10
- [Qemu-devel] [PULL 17/25] apb: Fix compiler warnings (large constants), Michael Tokarev, 2014/06/10
- [Qemu-devel] [PULL 14/25] hw/misc/milkymist-softusb: Remove unused softusb_{read, write}_pmem(), Michael Tokarev, 2014/06/10
- [Qemu-devel] [PULL 24/25] hw: vmware_vga: don't return cursorx when the driver asks for cursory register, Michael Tokarev, 2014/06/10
- [Qemu-devel] [PULL 01/25] net: cadence_gem: Fix Tx descriptor update, Michael Tokarev, 2014/06/10
- [Qemu-devel] [PULL 12/25] hw/isa/pc87312: Remove unused function is_parallel_epp(), Michael Tokarev, 2014/06/10