s3: Remove an unnecessary NULL check
[ira/wip.git] / source3 / lib / conn_tdb.c
index 0770f66828d3f75f782d057d1ad2bf53cca1a7b7..7f9c74636a6ad1a8e6c5a731684a388cced92630 100644 (file)
@@ -56,7 +56,7 @@ struct db_record *connections_fetch_entry(TALLOC_CTX *mem_ctx,
 
        ZERO_STRUCT(ckey);
        ckey.pid = procid_self();
-       ckey.cnum = conn ? conn->cnum : -1;
+       ckey.cnum = conn->cnum;
        strlcpy(ckey.name, name, sizeof(ckey.name));
 
        key.dsize = sizeof(ckey);