Skip to content

Commit bc0d83a

Browse files
Remove useless parentheses
To follow the coding style, remove the usless parentheses.
1 parent 7bb7862 commit bc0d83a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

qtest.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -882,7 +882,7 @@ static bool is_circular()
882882
struct list_head *cur = current->q->next;
883883
struct list_head *fast = (cur) ? cur->next : NULL;
884884
while (cur != current->q) {
885-
if (!cur || !fast || !(fast->next))
885+
if (!cur || !fast || !fast->next)
886886
return false;
887887
if (cur == fast)
888888
return false;
@@ -893,7 +893,7 @@ static bool is_circular()
893893
cur = current->q->prev;
894894
fast = (cur) ? cur->prev : NULL;
895895
while (cur != current->q) {
896-
if (!cur || !fast || !(fast->prev))
896+
if (!cur || !fast || !fast->prev)
897897
return false;
898898
cur = cur->prev;
899899
fast = fast->prev->prev;

0 commit comments

Comments
 (0)