From: Volker Lendecke Date: Wed, 2 Jul 2008 13:13:01 +0000 (+0200) Subject: Tiny logic simplification: Remove an unnecessary else branch X-Git-Tag: samba-3.3.0pre1~698 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6009ae329375b1c40e3d00df977ddccc8b5cc176;p=thirdparty%2Fsamba.git Tiny logic simplification: Remove an unnecessary else branch --- diff --git a/source/winbindd/idmap_ad.c b/source/winbindd/idmap_ad.c index 2e79413ffc2..b99da57a4a7 100644 --- a/source/winbindd/idmap_ad.c +++ b/source/winbindd/idmap_ad.c @@ -77,15 +77,15 @@ static ADS_STRUCT *ad_idmap_cached_connection_internal(void) if ( ads->config.realm && (expire > time(NULL))) { return ads; - } else { - /* we own this ADS_STRUCT so make sure it goes away */ - DEBUG(7,("Deleting expired krb5 credential cache\n")); - ads->is_mine = True; - ads_destroy( &ads ); - ads_kdestroy(WINBIND_CCACHE_NAME); - ad_idmap_ads = NULL; - TALLOC_FREE( ad_schema ); } + + /* we own this ADS_STRUCT so make sure it goes away */ + DEBUG(7,("Deleting expired krb5 credential cache\n")); + ads->is_mine = True; + ads_destroy( &ads ); + ads_kdestroy(WINBIND_CCACHE_NAME); + ad_idmap_ads = NULL; + TALLOC_FREE( ad_schema ); } if (!local) {