From: Volker Lendecke Date: Fri, 1 Sep 2023 11:18:14 +0000 (+0200) Subject: smbd: Remove a pointless NULL check X-Git-Tag: tevent-0.16.0~171 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a8dd943c11deb7aed8b59e49f2a540d6eeb6b1a6;p=thirdparty%2Fsamba.git smbd: Remove a pointless NULL check boolean short-circuiting already gives us this condition. Signed-off-by: Volker Lendecke Reviewed-by: Jeremy Allison --- diff --git a/source3/lib/util.c b/source3/lib/util.c index 93c01b862b3..b6305da91ed 100644 --- a/source3/lib/util.c +++ b/source3/lib/util.c @@ -733,7 +733,7 @@ bool is_in_path(const char *name, name_compare_entry *namelist, bool case_sensit const char *last_component; /* if we have no list it's obviously not in the path */ - if((namelist == NULL ) || ((namelist != NULL) && (namelist[0].name == NULL))) { + if ((namelist == NULL) || (namelist[0].name == NULL)) { return False; }