tree-wide: apply equals-null.cocci
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
@ -19,7 +19,7 @@ void prio_queue_reverse(struct prio_queue *queue)
|
||||
{
|
||||
int i, j;
|
||||
|
||||
if (queue->compare != NULL)
|
||||
if (queue->compare)
|
||||
BUG("prio_queue_reverse() on non-LIFO queue");
|
||||
for (i = 0; i < (j = (queue->nr - 1) - i); i++)
|
||||
swap(queue, i, j);
|
||||
|
Reference in New Issue
Block a user