From 08d8235828dedbbf8b9bde0fa20d985cdbe96294 Mon Sep 17 00:00:00 2001 From: Bill Nguyen Date: Wed, 6 Nov 2024 12:04:10 +1100 Subject: [PATCH] fix style Signed-off-by: Bill Nguyen --- tools/linux/net/board/odroidc4/net_driver_init | 1 - tools/linux/uio_drivers/net/main.c | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/tools/linux/net/board/odroidc4/net_driver_init b/tools/linux/net/board/odroidc4/net_driver_init index 3c2591cc..1f60fa6d 100644 --- a/tools/linux/net/board/odroidc4/net_driver_init +++ b/tools/linux/net/board/odroidc4/net_driver_init @@ -21,4 +21,3 @@ echo "ethtool -K $NET_INF tx off rx off" && \ ethtool -K "$NET_INF" tx off rx off && \ chmod +x /root/uio_net_driver && /root/uio_net_driver "$NET_INF" - diff --git a/tools/linux/uio_drivers/net/main.c b/tools/linux/uio_drivers/net/main.c index d266d962..fceecf9b 100644 --- a/tools/linux/uio_drivers/net/main.c +++ b/tools/linux/uio_drivers/net/main.c @@ -197,7 +197,7 @@ void tx_process(void) bool tx_data_paddr_found = false; for (int i = 0; i < NUM_NETWORK_CLIENTS; i++) { if (dma_tx_addr >= vmm_info_passing->tx_paddrs[i] && - dma_tx_addr < (vmm_info_passing->tx_paddrs[i] + NET_DATA_REGION_BYTES)) { + dma_tx_addr < (vmm_info_passing->tx_paddrs[i] + NET_DATA_REGION_BYTES)) { tx_data_offset = dma_tx_addr - vmm_info_passing->tx_paddrs[i]; tx_client = i; @@ -221,7 +221,7 @@ void tx_process(void) sa.sll_ifindex = ifr.ifr_ifindex; sa.sll_halen = ETH_ALEN; - int sent_bytes = sendto(sock_fd, tx_data, tx_buffer.len, 0, (struct sockaddr*)&sa, sizeof(sa));; + int sent_bytes = sendto(sock_fd, tx_data, tx_buffer.len, 0, (struct sockaddr *)&sa, sizeof(sa)); if (sent_bytes != tx_buffer.len) { perror("tx_process(): sendto()"); LOG_NET_ERR("TX sent %d != expected %d. qutting.\n", sent_bytes, tx_buffer.len);