s3: A NULL context might be perfectly valid for bitmap_talloc
authorVolker Lendecke <vl@samba.org>
Sun, 28 Mar 2010 12:05:55 +0000 (14:05 +0200)
committerVolker Lendecke <vl@samba.org>
Sun, 28 Mar 2010 13:25:16 +0000 (15:25 +0200)
source3/lib/bitmap.c

index 894395fbc62c2a081a3e9444a1c30865d20c5889..37c5b4510e25ee10f960f44762422838ab11107f 100644 (file)
@@ -65,8 +65,6 @@ struct bitmap *bitmap_talloc(TALLOC_CTX *mem_ctx, int n)
 {
        struct bitmap *bm;
 
-       if (!mem_ctx) return NULL;
-
        bm = TALLOC_P(mem_ctx, struct bitmap);
 
        if (!bm) return NULL;