From 4c6fd6043b3cf3b395b58037e99b1c2b7334a411 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Fri, 6 Aug 2010 23:27:36 +0200 Subject: s3: Remove an unnecessary NULL check Now that connections.tdb is not used for the broadcast messaging anymore, connections_fetch_entry is only called for real connections. --- source3/lib/conn_tdb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source3') diff --git a/source3/lib/conn_tdb.c b/source3/lib/conn_tdb.c index 0770f66828..7f9c74636a 100644 --- a/source3/lib/conn_tdb.c +++ b/source3/lib/conn_tdb.c @@ -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); -- cgit