Skip to content

Commit

Permalink
Remove useless parentheses
Browse files Browse the repository at this point in the history
To follow the coding style, remove the usless parentheses.
  • Loading branch information
wilson20010327 committed Mar 28, 2024
1 parent 7bb7862 commit bc0d83a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions qtest.c
Original file line number Diff line number Diff line change
Expand Up @@ -882,7 +882,7 @@ static bool is_circular()
struct list_head *cur = current->q->next;
struct list_head *fast = (cur) ? cur->next : NULL;
while (cur != current->q) {
if (!cur || !fast || !(fast->next))
if (!cur || !fast || !fast->next)
return false;
if (cur == fast)
return false;
Expand All @@ -893,7 +893,7 @@ static bool is_circular()
cur = current->q->prev;
fast = (cur) ? cur->prev : NULL;
while (cur != current->q) {
if (!cur || !fast || !(fast->prev))
if (!cur || !fast || !fast->prev)
return false;
cur = cur->prev;
fast = fast->prev->prev;
Expand Down

0 comments on commit bc0d83a

Please sign in to comment.