ctdb-daemon: Don't check if lock_ctx->ctdb_db is NULL
authorMartin Schwenke <martin@meltin.net>
Mon, 24 Jun 2019 20:35:04 +0000 (06:35 +1000)
committerAmitay Isaacs <amitay@samba.org>
Fri, 5 Jul 2019 05:03:25 +0000 (05:03 +0000)
commit755a9e654feaa7265975a1f02ea2f59fd30d09a9
treed2b3f848445e51365e6d4f396fe58c2599372505
parente5a946cba5c309a6bdd1109685866d4a1c6841be
ctdb-daemon: Don't check if lock_ctx->ctdb_db is NULL

This can never be NULL.  It could probably be NULL in the past when
"all database" locks existed.

There are paths where is is checked for NULL and then later
dereferenced, causing static analysers to produce spurious warnings.

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
ctdb/server/ctdb_lock.c