This is an automated email from Gerrit.

"Daniel Anselmi <danse...@gmx.ch>" just uploaded a new patch set to Gerrit, 
which you can find at https://review.openocd.org/c/openocd/+/7399

-- gerrit

commit 6a1963fe1804a088d35b438b6e7da6fb811e1313
Author: Daniel Anselmi <danse...@gmx.ch>
Date:   Wed Dec 14 12:51:48 2022 +0100

    ipdbg: whitespaces
    
    Change-Id: I9294c551cf2e795ad5e3e92dc3926c564424e067
    Signed-off-by: Daniel Anselmi <danse...@gmx.ch>

diff --git a/src/server/ipdbg.c b/src/server/ipdbg.c
index 0c50c2f681..ec76bdaf9e 100644
--- a/src/server/ipdbg.c
+++ b/src/server/ipdbg.c
@@ -91,7 +91,7 @@ static void ipdbg_zero_rd_idx(struct ipdbg_fifo *fifo)
                return;
 
        size_t ri = fifo->rd_idx;
-       for (size_t idx = 0 ; idx < fifo->count ; ++idx)
+       for (size_t idx = 0; idx < fifo->count; ++idx)
                fifo->buffer[idx] = fifo->buffer[ri++];
        fifo->rd_idx = 0;
 }
@@ -150,7 +150,7 @@ static int 
ipdbg_max_tools_from_data_register_length(uint8_t data_register_lengt
 static struct ipdbg_service *ipdbg_find_service(struct ipdbg_hub *hub, uint8_t 
tool)
 {
        struct ipdbg_service *service;
-       for (service = ipdbg_first_service ; service ; service = service->next) 
{
+       for (service = ipdbg_first_service; service; service = service->next) {
                if (service->hub == hub && service->tool == tool)
                        break;
        }
@@ -161,7 +161,7 @@ static void ipdbg_add_service(struct ipdbg_service *service)
 {
        struct ipdbg_service *iservice;
        if (ipdbg_first_service) {
-               for (iservice = ipdbg_first_service ; iservice->next; iservice 
= iservice->next)
+               for (iservice = ipdbg_first_service; iservice->next; iservice = 
iservice->next)
                        ;
                iservice->next = service;
        } else
@@ -193,7 +193,7 @@ static int ipdbg_remove_service(struct ipdbg_service 
*service)
                return ERROR_OK;
        }
 
-       for (struct ipdbg_service *iservice = ipdbg_first_service ; 
iservice->next ; iservice = iservice->next) {
+       for (struct ipdbg_service *iservice = ipdbg_first_service; 
iservice->next; iservice = iservice->next) {
                if (service == iservice->next) {
                        iservice->next = service->next;
                        return ERROR_OK;
@@ -206,7 +206,7 @@ static struct ipdbg_hub *ipdbg_find_hub(struct jtag_tap 
*tap,
                                uint32_t user_instruction, struct 
ipdbg_virtual_ir_info *virtual_ir)
 {
        struct ipdbg_hub *hub = NULL;
-       for (hub = ipdbg_first_hub ; hub ; hub = hub->next) {
+       for (hub = ipdbg_first_hub; hub; hub = hub->next) {
                if (hub->tap == tap && hub->user_instruction == 
user_instruction) {
                        if ((!virtual_ir && !hub->virtual_ir) ||
                                 (virtual_ir && hub->virtual_ir &&
@@ -224,7 +224,7 @@ static void ipdbg_add_hub(struct ipdbg_hub *hub)
 {
        struct ipdbg_hub *ihub;
        if (ipdbg_first_hub) {
-               for (ihub = ipdbg_first_hub ; ihub->next; ihub = ihub->next)
+               for (ihub = ipdbg_first_hub; ihub->next; ihub = ihub->next)
                        ;
                ihub->next = hub;
        } else
@@ -282,7 +282,7 @@ static int ipdbg_remove_hub(struct ipdbg_hub *hub)
                return ERROR_OK;
        }
 
-       for (struct ipdbg_hub *ihub = ipdbg_first_hub ; ihub->next ; ihub = 
ihub->next) {
+       for (struct ipdbg_hub *ihub = ipdbg_first_hub; ihub->next; ihub = 
ihub->next) {
                if (hub == ihub->next) {
                        ihub->next = hub->next;
                        return ERROR_OK;
@@ -448,7 +448,7 @@ static int ipdbg_polling_callback(void *priv)
 
        /* transfer dn buffers to jtag-hub */
        unsigned int num_transfers = 0;
-       for (size_t tool = 0 ; tool < hub->max_tools ; ++tool) {
+       for (size_t tool = 0; tool < hub->max_tools; ++tool) {
                struct connection *conn = hub->connections[tool];
                if (conn && conn->priv) {
                        struct ipdbg_connection *connection = conn->priv;
@@ -476,7 +476,7 @@ static int ipdbg_polling_callback(void *priv)
        }
 
        /* write from up fifos to sockets */
-       for (size_t tool = 0 ; tool < hub->max_tools ; ++tool) {
+       for (size_t tool = 0; tool < hub->max_tools; ++tool) {
                struct connection *conn = hub->connections[tool];
                if (conn && conn->priv) {
                        struct ipdbg_connection *connection = conn->priv;

-- 

Reply via email to