]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
lib: Remove some dead code from ad_init()
authorVolker Lendecke <vl@samba.org>
Tue, 25 Feb 2025 16:35:53 +0000 (17:35 +0100)
committerVolker Lendecke <vl@samba.org>
Thu, 27 Mar 2025 13:13:31 +0000 (13:13 +0000)
"rc" was never set to anything but 0.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Anoop C S <anoopcs@samba.org>
source3/lib/adouble.c

index 6f5ffe35c8fd5bbfd5415cd15f9e068872de1d12..9a11498fda7e947609d73b4953e035740891f50d 100644 (file)
@@ -2547,7 +2547,6 @@ exit:
  **/
 struct adouble *ad_init(TALLOC_CTX *ctx, adouble_type_t type)
 {
-       int rc = 0;
        const struct ad_entry_order  *eid;
        struct adouble *ad = NULL;
        time_t t = time(NULL);
@@ -2580,9 +2579,6 @@ struct adouble *ad_init(TALLOC_CTX *ctx, adouble_type_t type)
        ad_setdate(ad, AD_DATE_ACCESS | AD_DATE_UNIX, t);
        ad_setdate(ad, AD_DATE_BACKUP, htonl(AD_DATE_START));
 
-       if (rc != 0) {
-               TALLOC_FREE(ad);
-       }
        return ad;
 }