summaryrefslogtreecommitdiff
path: root/tests/fuzz-tests/004-simple-dump-tree
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.com>2018-03-23 16:21:37 +0100
committerDavid Sterba <dsterba@suse.com>2018-03-30 22:15:55 +0200
commita855717a87a8da78b62148e8bf0a629695596097 (patch)
treebf4606be59922453b284350bf8121907fc705a4f /tests/fuzz-tests/004-simple-dump-tree
parenta1e21ec5a880044f44a9109633c7503bce02cb5e (diff)
btrfs-progs: tests: remove trivial use of local variables
No need to use a temporary variable if the parameter usage is obvious from the context. Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'tests/fuzz-tests/004-simple-dump-tree')
-rwxr-xr-xtests/fuzz-tests/004-simple-dump-tree/test.sh5
1 files changed, 1 insertions, 4 deletions
diff --git a/tests/fuzz-tests/004-simple-dump-tree/test.sh b/tests/fuzz-tests/004-simple-dump-tree/test.sh
index 857c742a..c09b8478 100755
--- a/tests/fuzz-tests/004-simple-dump-tree/test.sh
+++ b/tests/fuzz-tests/004-simple-dump-tree/test.sh
@@ -7,10 +7,7 @@ check_prereq btrfs
# redefine the one provided by common
check_image() {
- local image
-
- image=$1
- run_mayfail "$TOP/btrfs" inspect-internal dump-tree "$image"
+ run_mayfail "$TOP/btrfs" inspect-internal dump-tree "$1"
}
check_all_images "$TEST_TOP/fuzz-tests/images"