diff options
author | Junio C Hamano <gitster@pobox.com> | 2022-05-02 19:18:22 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2022-05-02 19:18:22 +0200 |
commit | e6bf70d17624425aa0d7e9518b6a62dad13e4c5d (patch) | |
tree | 56fa2b491248c7ae4f03fceebda6bc344874f9e0 | |
parent | Merge branch 'ep/maint-equals-null-cocci' into ep/equals-null-cocci (diff) | |
download | git-e6bf70d17624425aa0d7e9518b6a62dad13e4c5d.tar.xz git-e6bf70d17624425aa0d7e9518b6a62dad13e4c5d.zip |
tree-wide: apply equals-null.cocci
Signed-off-by: Junio C Hamano <gitster@pobox.com>
-rw-r--r-- | branch.c | 2 | ||||
-rw-r--r-- | compat/fsmonitor/fsm-listen-darwin.c | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -653,7 +653,7 @@ void create_branches_recursively(struct repository *r, const char *name, * be created in every submodule. */ for (i = 0; i < submodule_entry_list.entry_nr; i++) { - if (submodule_entry_list.entries[i].repo == NULL) { + if (!submodule_entry_list.entries[i].repo) { int code = die_message( _("submodule '%s': unable to find submodule"), submodule_entry_list.entries[i].submodule->name); diff --git a/compat/fsmonitor/fsm-listen-darwin.c b/compat/fsmonitor/fsm-listen-darwin.c index 0741fe834c..dc8a33130a 100644 --- a/compat/fsmonitor/fsm-listen-darwin.c +++ b/compat/fsmonitor/fsm-listen-darwin.c @@ -342,7 +342,7 @@ int fsm_listen__ctor(struct fsmonitor_daemon_state *state) data->cfar_paths_to_watch, kFSEventStreamEventIdSinceNow, 0.001, flags); - if (data->stream == NULL) + if (!data->stream) goto failed; /* |