]> granicus.if.org Git - strace/commitdiff
btrfs.c: remove unused variable
authorDmitry V. Levin <ldv@altlinux.org>
Tue, 24 May 2016 00:45:05 +0000 (00:45 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Tue, 24 May 2016 14:52:27 +0000 (14:52 +0000)
* btrfs.c (btrfs_ioctl): Remove "ret" variable.

btrfs.c

diff --git a/btrfs.c b/btrfs.c
index 8371796dee05bdd3aba3662b595eaaabf240c866..52f4156280a32a4f264ba6f25ad2a3d40bb77d71 100644 (file)
--- a/btrfs.c
+++ b/btrfs.c
@@ -471,10 +471,8 @@ btrfs_print_tree_search(struct tcb *tcp, struct btrfs_ioctl_search_key *key,
 int
 btrfs_ioctl(struct tcb *tcp, const unsigned int code, const long arg)
 {
-       int ret = 0;
-
        switch (code) {
-       /* Take no arguments; Command only. */
+       /* Take no arguments; command only. */
        case BTRFS_IOC_TRANS_START:
        case BTRFS_IOC_TRANS_END:
        case BTRFS_IOC_SYNC:
@@ -1369,6 +1367,6 @@ btrfs_ioctl(struct tcb *tcp, const unsigned int code, const long arg)
        default:
                return RVAL_DECODED;
        };
-       return ret | RVAL_DECODED | 1;
+       return RVAL_DECODED | 1;
 }
 #endif /* HAVE_LINUX_BTRFS_H */