OpenOCD: fix code indentation
Fix checkpatch errors ERROR:SUSPECT_CODE_INDENT: suspect code indent for conditional statements Change-Id: I94d4fa5720c25dd2fb0334a824cd9026babcce4e Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com> Reviewed-on: https://review.openocd.org/c/openocd/+/8497 Tested-by: jenkins
This commit is contained in:
@@ -624,7 +624,7 @@ static struct threads *liste_add_task(struct threads *task_list, struct threads
|
||||
{
|
||||
t->next = NULL;
|
||||
|
||||
if (!*last)
|
||||
if (!*last) {
|
||||
if (!task_list) {
|
||||
task_list = t;
|
||||
return task_list;
|
||||
@@ -637,7 +637,8 @@ static struct threads *liste_add_task(struct threads *task_list, struct threads
|
||||
temp->next = t;
|
||||
*last = t;
|
||||
return task_list;
|
||||
} else {
|
||||
}
|
||||
} else {
|
||||
(*last)->next = t;
|
||||
*last = t;
|
||||
return task_list;
|
||||
|
||||
Reference in New Issue
Block a user