Remove a useless variable.
authorMichael Adam <obnox@samba.org>
Thu, 28 Feb 2008 10:31:20 +0000 (11:31 +0100)
committerMichael Adam <obnox@samba.org>
Thu, 28 Feb 2008 11:20:43 +0000 (12:20 +0100)
Michael
(This used to be commit 661b9f3d779b419e72968dd3b42348f9da68d803)

source3/torture/cmd_vfs.c

index 82a28bd868ac90781dfc835038e315b269a6baee..9359b585995cd009b01252469e5f5b40c166e93e 100644 (file)
@@ -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;
        }