From patchwork Fri Jun 22 22:19:37 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bart Van Assche X-Patchwork-Id: 10483155 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 86071602CB for ; Fri, 22 Jun 2018 22:19:53 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 77C1D28FF3 for ; Fri, 22 Jun 2018 22:19:53 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6ADC528FF9; Fri, 22 Jun 2018 22:19:53 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 12FBD28FF3 for ; Fri, 22 Jun 2018 22:19:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933807AbeFVWTv (ORCPT ); Fri, 22 Jun 2018 18:19:51 -0400 Received: from esa3.hgst.iphmx.com ([216.71.153.141]:29608 "EHLO esa3.hgst.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933753AbeFVWTt (ORCPT ); Fri, 22 Jun 2018 18:19:49 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=wdc.com; i=@wdc.com; q=dns/txt; s=dkim.wdc.com; t=1529705989; x=1561241989; h=from:to:cc:subject:date:message-id:in-reply-to: references; bh=IC3VNeE56a9uhh7Xd/4yR2XbJ9uYhpalJEQFPrpRVRs=; b=fNWL6UdY8NOMJQeyUz6lxrVIN0oOOHswfZ27n3PFH7ZpxVssfxHw6ZMW XdG7z7JIdwbzhEBt//UaAwQk05a1J9G7Hc7ygqdiUjGAUhjYvy2Zw0NVP OErRUCv65jGLZz7K1MsS5dRe6epUw5O4z+lcYGFuMFttQQG+1Rpwo9J/4 MD7FLaDroXZmN+UnQaGBYZ4mof4pD71U0WI1s2waXl6WhxHeSc3vy0BDI Ygrz7Z68RTHMo5/+igwE6HvNAc/yX4u4K9BJhNDVnDgP3D4aHeA7jn+43 W7a+QOLLXzEOC0E3+9rcATJQl1wR4g4dclhrad9dmOzpreNKVyFLE8FkT A==; X-IronPort-AV: E=Sophos;i="5.51,259,1526313600"; d="scan'208";a="83827522" Received: from h199-255-45-15.hgst.com (HELO uls-op-cesaep02.wdc.com) ([199.255.45.15]) by ob1.hgst.iphmx.com with ESMTP; 23 Jun 2018 06:19:48 +0800 Received: from uls-op-cesaip01.wdc.com ([10.248.3.36]) by uls-op-cesaep02.wdc.com with ESMTP; 22 Jun 2018 15:09:15 -0700 Received: from thinkpad-bart.sdcorp.global.sandisk.com ([10.111.67.248]) by uls-op-cesaip01.wdc.com with ESMTP; 22 Jun 2018 15:19:47 -0700 From: Bart Van Assche To: Omar Sandoval Cc: linux-block@vger.kernel.org, Bart Van Assche Subject: [PATCH blktests 06/15] Multiple tests: remove unused and undefined variables Date: Fri, 22 Jun 2018 15:19:37 -0700 Message-Id: <20180622221946.10987-7-bart.vanassche@wdc.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180622221946.10987-1-bart.vanassche@wdc.com> References: <20180622221946.10987-1-bart.vanassche@wdc.com> Sender: linux-block-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-block@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Signed-off-by: Bart Van Assche Acked-by: Chaitanya Kulkarni --- tests/loop/003 | 3 --- tests/nvme/010 | 3 +-- tests/nvme/011 | 3 +-- tests/nvme/012 | 1 - tests/nvme/013 | 1 - 5 files changed, 2 insertions(+), 9 deletions(-) diff --git a/tests/loop/003 b/tests/loop/003 index 353d4fcfa33c..6f6fa8d18ebe 100755 --- a/tests/loop/003 +++ b/tests/loop/003 @@ -28,11 +28,8 @@ requires() { } test() { - local loop_dev echo "Running ${TEST_NAME}" - loop_dev="$(losetup -f)" - # In a subshell so TIMEFORMAT doesn't get clobbered. ( TIMEFORMAT="Test took %0R seconds" diff --git a/tests/nvme/010 b/tests/nvme/010 index 956c6597a374..b6849dbad375 100755 --- a/tests/nvme/010 +++ b/tests/nvme/010 @@ -38,7 +38,6 @@ test() { modprobe nvme-loop local port - local ret=0 local nvmedev local loop_dev local file_path="${TMPDIR}/img" @@ -70,7 +69,7 @@ test() { losetup -d "${loop_dev}" rm "${file_path}" - rm -f local*verify*state "${fio_out}" + rm -f local*verify*state modprobe -r nvme_loop modprobe -r nvmet diff --git a/tests/nvme/011 b/tests/nvme/011 index 872a99af4f8c..f26eb155809c 100755 --- a/tests/nvme/011 +++ b/tests/nvme/011 @@ -37,7 +37,6 @@ test() { modprobe nvme-loop local port - local ret=0 local nvmedev local file_path local file_path="${TMPDIR}/img" @@ -65,7 +64,7 @@ test() { _remove_nvmet_port "${port}" rm "${file_path}" - rm -f local-write-and-verify*state "${fio_out}" + rm -f local-write-and-verify*state modprobe -r nvme_loop modprobe -r nvmet diff --git a/tests/nvme/012 b/tests/nvme/012 index 8f632b30734d..e570793dd5db 100755 --- a/tests/nvme/012 +++ b/tests/nvme/012 @@ -38,7 +38,6 @@ test() { modprobe nvme-loop local port - local ret=0 local nvmedev local loop_dev local mount_dir="/mnt/blktests" diff --git a/tests/nvme/013 b/tests/nvme/013 index 0ccb083b175b..247fe9f252fa 100755 --- a/tests/nvme/013 +++ b/tests/nvme/013 @@ -38,7 +38,6 @@ test() { modprobe nvme-loop local port - local ret=0 local nvmedev local mount_dir="/mnt/blktests/" local file_path="${TMPDIR}/img"