]> git.ipfire.org Git - thirdparty/git.git/commitdiff
tree-wide: apply equals-null.cocci
authorJunio C Hamano <gitster@pobox.com>
Mon, 2 May 2022 17:18:22 +0000 (10:18 -0700)
committerJunio C Hamano <gitster@pobox.com>
Mon, 2 May 2022 17:18:22 +0000 (10:18 -0700)
Signed-off-by: Junio C Hamano <gitster@pobox.com>
branch.c
compat/fsmonitor/fsm-listen-darwin.c

index d0ca2b76d2ba069d5bcc549e79e59826d174ecc7..bde705b092b3c6f1b929ce504fb5599b1211705b 100644 (file)
--- a/branch.c
+++ b/branch.c
@@ -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);
index 0741fe834c3168a0c88e4a7c67275554fe5cc5c0..dc8a33130a5ea0584686e903d8628f2dc3145e91 100644 (file)
@@ -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;
 
        /*