summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2012-04-19 16:31:40 +1000
committerAndrew Bartlett <abartlet@samba.org>2012-04-19 12:34:33 +0200
commit00d493b00ced40f3a5dd39d9f1386ff5694872a3 (patch)
treee425300f34fd76b92f4cc4a28011b7aedb99d072 /source3
parent4471778d7846e0c5d5989e522ee214a3b4ded153 (diff)
downloadsamba-00d493b00ced40f3a5dd39d9f1386ff5694872a3.tar.gz
samba-00d493b00ced40f3a5dd39d9f1386ff5694872a3.tar.bz2
samba-00d493b00ced40f3a5dd39d9f1386ff5694872a3.zip
s3-dbwrap: Remove dead code: talloc_stackframe() cannot fail
Diffstat (limited to 'source3')
-rw-r--r--source3/lib/dbwrap/dbwrap.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/source3/lib/dbwrap/dbwrap.c b/source3/lib/dbwrap/dbwrap.c
index 80bd09bf43..c78ee747a7 100644
--- a/source3/lib/dbwrap/dbwrap.c
+++ b/source3/lib/dbwrap/dbwrap.c
@@ -149,9 +149,6 @@ static struct db_record *dbwrap_fetch_locked_internal(
struct db_record *rec;
struct dbwrap_lock_order_state *lock_order;
TALLOC_CTX *frame = talloc_stackframe();
- if (!frame) {
- return NULL;
- }
lock_order = dbwrap_check_lock_order(db, frame);
if (lock_order == NULL) {
@@ -242,9 +239,6 @@ NTSTATUS dbwrap_store(struct db_context *db, TDB_DATA key,
struct db_record *rec;
NTSTATUS status;
TALLOC_CTX *frame = talloc_stackframe();
- if (!frame) {
- return NT_STATUS_NO_MEMORY;
- }
rec = dbwrap_fetch_locked(db, frame, key);
if (rec == NULL) {
@@ -262,11 +256,8 @@ NTSTATUS dbwrap_delete(struct db_context *db, TDB_DATA key)
struct db_record *rec;
NTSTATUS status;
TALLOC_CTX *frame = talloc_stackframe();
- if (!frame) {
- return NT_STATUS_NO_MEMORY;
- }
- rec = dbwrap_fetch_locked(db, talloc_tos(), key);
+ rec = dbwrap_fetch_locked(db, frame, key);
if (rec == NULL) {
TALLOC_FREE(frame);
return NT_STATUS_NO_MEMORY;