From 84ad848c86f6c36cb7ceab25609710acbc57893b Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Thu, 19 Apr 2012 16:31:52 +1000 Subject: s3-xattr_tdb: Remove dead code: talloc_stackframe() cannot fail Autobuild-User: Andrew Bartlett Autobuild-Date: Thu Apr 19 14:15:42 CEST 2012 on sn-devel-104 --- source3/modules/vfs_xattr_tdb.c | 8 -------- 1 file changed, 8 deletions(-) (limited to 'source3/modules') diff --git a/source3/modules/vfs_xattr_tdb.c b/source3/modules/vfs_xattr_tdb.c index 5c105b5194..ee3199d277 100644 --- a/source3/modules/vfs_xattr_tdb.c +++ b/source3/modules/vfs_xattr_tdb.c @@ -37,10 +37,6 @@ static ssize_t xattr_tdb_getxattr(struct vfs_handle_struct *handle, ssize_t xattr_size; DATA_BLOB blob; TALLOC_CTX *frame = talloc_stackframe(); - if (!frame) { - errno = ENOMEM; - return -1; - } SMB_VFS_HANDLE_GET_DATA(handle, db, struct db_context, return -1); @@ -75,10 +71,6 @@ static ssize_t xattr_tdb_fgetxattr(struct vfs_handle_struct *handle, ssize_t xattr_size; DATA_BLOB blob; TALLOC_CTX *frame = talloc_stackframe(); - if (!frame) { - errno = ENOMEM; - return -1; - } SMB_VFS_HANDLE_GET_DATA(handle, db, struct db_context, return -1); -- cgit