Skip to content

Commit

Permalink
qemu-iotests: get rid of _full_imgproto_details()
Browse files Browse the repository at this point in the history
Although this function is used, its implementation does nothing
besides echoing a variable name.  There's no need to wrap this
functionality in a function, and based on the one usage it has, it's
not even required to adhere to a convention or code style.

Signed-off-by: Cleber Rosa <[email protected]>
Signed-off-by: Michael Tokarev <[email protected]>
  • Loading branch information
clebergnu authored and Michael Tokarev committed Aug 14, 2017
1 parent 88552b5 commit 657c572
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
3 changes: 1 addition & 2 deletions tests/qemu-iotests/check
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,6 @@ rm -f check.full
[ -f $TIMESTAMP_FILE ] || touch $TIMESTAMP_FILE

FULL_IMGFMT_DETAILS=`_full_imgfmt_details`
FULL_IMGPROTO_DETAILS=`_full_imgproto_details`
FULL_HOST_DETAILS=`_full_platform_details`
#FULL_MKFS_OPTIONS=`_scratch_mkfs_options`
#FULL_MOUNT_OPTIONS=`_scratch_mount_options`
Expand All @@ -239,7 +238,7 @@ QEMU_IMG -- "$QEMU_IMG_PROG" $QEMU_IMG_OPTIONS
QEMU_IO -- "$QEMU_IO_PROG" $QEMU_IO_OPTIONS
QEMU_NBD -- "$QEMU_NBD_PROG" $QEMU_NBD_OPTIONS
IMGFMT -- $FULL_IMGFMT_DETAILS
IMGPROTO -- $FULL_IMGPROTO_DETAILS
IMGPROTO -- $IMGPROTO
PLATFORM -- $FULL_HOST_DETAILS
TEST_DIR -- $TEST_DIR
SOCKET_SCM_HELPER -- $SOCKET_SCM_HELPER
Expand Down
5 changes: 0 additions & 5 deletions tests/qemu-iotests/common.rc
Original file line number Diff line number Diff line change
Expand Up @@ -482,11 +482,6 @@ _full_imgfmt_details()
fi
}

_full_imgproto_details()
{
echo "$IMGPROTO"
}

_full_platform_details()
{
os=`uname -s`
Expand Down

0 comments on commit 657c572

Please sign in to comment.