From 3474134f23c8381914b666ad034cac578961f857 Mon Sep 17 00:00:00 2001 From: nick black Date: Tue, 13 Apr 2021 18:44:52 -0400 Subject: [PATCH] [nctree] eliminate tautological pointer compare --- src/lib/tree.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/lib/tree.c b/src/lib/tree.c index ad1799b98..9b274aa4c 100644 --- a/src/lib/tree.c +++ b/src/lib/tree.c @@ -123,9 +123,6 @@ nctree_inner_create(ncplane* n, const struct nctree_options* opts){ } nctree* nctree_create(ncplane* n, const struct nctree_options* opts){ - if(n == NULL){ - return NULL; - } notcurses* nc = ncplane_notcurses(n); if(opts->flags){ logwarn(nc, "Passed invalid flags 0x%016jx\n", (uint64_t)opts->flags);