summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2008-02-28 11:31:20 +0100
committerMichael Adam <obnox@samba.org>2008-02-28 12:20:43 +0100
commit3e581eeee9a03afad5faf0fd730624cee7485c7b (patch)
tree4210ee51b932ec226d1374c52f777dc0de38c850 /source3
parent42e301570b1d14e311b1db5f5afc59a4c6f89d17 (diff)
downloadsamba-3e581eeee9a03afad5faf0fd730624cee7485c7b.tar.gz
samba-3e581eeee9a03afad5faf0fd730624cee7485c7b.tar.bz2
samba-3e581eeee9a03afad5faf0fd730624cee7485c7b.zip
Remove a useless variable.
Michael (This used to be commit 661b9f3d779b419e72968dd3b42348f9da68d803)
Diffstat (limited to 'source3')
-rw-r--r--source3/torture/cmd_vfs.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/source3/torture/cmd_vfs.c b/source3/torture/cmd_vfs.c
index 82a28bd868..9359b58599 100644
--- a/source3/torture/cmd_vfs.c
+++ b/source3/torture/cmd_vfs.c
@@ -842,7 +842,6 @@ static NTSTATUS cmd_ftruncate(struct vfs_state *vfs, TALLOC_CTX *mem_ctx, int ar
static NTSTATUS cmd_lock(struct vfs_state *vfs, TALLOC_CTX *mem_ctx, int argc, const char **argv)
{
- bool ret;
int fd;
int op;
long offset;
@@ -914,7 +913,7 @@ static NTSTATUS cmd_lock(struct vfs_state *vfs, TALLOC_CTX *mem_ctx, int argc, c
printf("lock: debug lock(fd=%d, op=%d, offset=%ld, count=%ld, type=%d))\n", fd, op, offset, count, type);
- if ((ret = SMB_VFS_LOCK(vfs->files[fd], op, offset, count, type)) == False) {
+ if (SMB_VFS_LOCK(vfs->files[fd], op, offset, count, type) == False) {
printf("lock: error=%d (%s)\n", errno, strerror(errno));
return NT_STATUS_UNSUCCESSFUL;
}