s3: Remove an unnecessary if-statement
authorVolker Lendecke <vl@samba.org>
Sat, 26 Feb 2011 12:43:55 +0000 (13:43 +0100)
committerVolker Lendecke <vl@samba.org>
Sun, 6 Mar 2011 11:51:01 +0000 (12:51 +0100)
source3/winbindd/idmap_rid.c

index ae54475dfd04b5955f863a3e6ddf2fed862e217b..cef06752821825eab25c911c39f801e5268176cd 100644 (file)
@@ -184,9 +184,7 @@ static NTSTATUS idmap_rid_sids_to_unixids(struct idmap_domain *dom, struct id_ma
 
 static NTSTATUS idmap_rid_close(struct idmap_domain *dom)
 {
-       if (dom->private_data) {
-               TALLOC_FREE(dom->private_data);
-       }
+       TALLOC_FREE(dom->private_data);
        return NT_STATUS_OK;
 }