[PATCH blktests 8/8] nvme: drop arguments from _create_nvmet_port()

Shin'ichiro Kawasaki shinichiro.kawasaki at wdc.com
Thu Nov 7 03:13:54 PST 2024


From: Hannes Reinecke <hare at suse.de>

Always called without arguments, so drop the assignment.

Signed-off-by: Hannes Reinecke <hare at suse.de>
Signed-off-by: Shin'ichiro Kawasaki <shinichiro.kawasaki at wdc.com>
---
 common/nvme | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/common/nvme b/common/nvme
index 1190de7..688193b 100644
--- a/common/nvme
+++ b/common/nvme
@@ -430,10 +430,10 @@ _fc_host_traddr() {
 }
 
 _create_nvmet_port() {
-	local trtype="${1:-$nvme_trtype}"
-	local traddr="${2:-$def_traddr}"
-	local adrfam="${3:-$def_adrfam}"
-	local trsvcid="${4:-$def_trsvcid}"
+	local trtype="${nvme_trtype}"
+	local traddr="${def_traddr}"
+	local adrfam="${def_adrfam}"
+	local trsvcid="${def_trsvcid}"
 	local portcfs
 
 	local port
-- 
2.47.0




More information about the Linux-nvme mailing list