[nctree] eliminate tautological pointer compare

This commit is contained in:
nick black 2021-04-13 18:44:52 -04:00
parent 46d70602c5
commit 3474134f23
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC

View File

@ -123,9 +123,6 @@ nctree_inner_create(ncplane* n, const struct nctree_options* opts){
} }
nctree* nctree_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); notcurses* nc = ncplane_notcurses(n);
if(opts->flags){ if(opts->flags){
logwarn(nc, "Passed invalid flags 0x%016jx\n", (uint64_t)opts->flags); logwarn(nc, "Passed invalid flags 0x%016jx\n", (uint64_t)opts->flags);