From: Dmitry V. Levin Date: Tue, 24 May 2016 00:45:05 +0000 (+0000) Subject: btrfs.c: remove unused variable X-Git-Tag: v4.12~89 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3ce2dfcebb799dcf3d7e2d2e630c23a81b941d75;p=strace btrfs.c: remove unused variable * btrfs.c (btrfs_ioctl): Remove "ret" variable. --- diff --git a/btrfs.c b/btrfs.c index 8371796d..52f41562 100644 --- 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 */