diff options
| author | Junio C Hamano <gitster@pobox.com> | 2022-05-02 10:09:21 -0700 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2022-05-02 10:09:21 -0700 |
| commit | 72a4ea71e5f29e4078363e87e4471128ff713a62 (patch) | |
| tree | 1815b403d331f497c0e52980923fdbbee3058710 /reftable/tree.c | |
| parent | 2b0a58d164b0642be3eeb476fecd28114445cdd5 (diff) | |
| download | git-72a4ea71e5f29e4078363e87e4471128ff713a62.tar.gz | |
tree-wide: apply equals-null.cocci
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'reftable/tree.c')
| -rw-r--r-- | reftable/tree.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/reftable/tree.c b/reftable/tree.c index 82db7995dd..b8899e060a 100644 --- a/reftable/tree.c +++ b/reftable/tree.c @@ -16,7 +16,7 @@ struct tree_node *tree_search(void *key, struct tree_node **rootp, int insert) { int res; - if (*rootp == NULL) { + if (!*rootp) { if (!insert) { return NULL; } else { @@ -50,7 +50,7 @@ void infix_walk(struct tree_node *t, void (*action)(void *arg, void *key), void tree_free(struct tree_node *t) { - if (t == NULL) { + if (!t) { return; } if (t->left) { |
