Skip to content

Commit

Permalink
Fix coding style check warning in q_delete_dup():
Browse files Browse the repository at this point in the history
Addressed a coding style check warning.
  • Loading branch information
aftuta85 committed Mar 21, 2024
1 parent aff642c commit 3355e02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion queue.c
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ bool q_delete_dup(struct list_head *head)

struct list_head **indir = &head->next;
struct list_head *del = NULL;
element_t *e, *next_e;
element_t *e = NULL, *next_e = NULL;
while (*indir != head && (*indir)->next != head) {
e = list_entry(*indir, element_t, list);
next_e = list_entry((*indir)->next, element_t, list);
Expand Down

0 comments on commit 3355e02

Please sign in to comment.