From 222cd549fe034f551f0119230779fc7d69ed7c8d Mon Sep 17 00:00:00 2001 From: Hannes Reinecke Date: Thu, 7 Nov 2024 20:13:54 +0900 Subject: [PATCH] nvme: drop arguments from _create_nvmet_port() Always called without arguments, so drop the assignment. Signed-off-by: Hannes Reinecke Reviewed-by: Daniel Wagner Signed-off-by: Shin'ichiro Kawasaki --- common/nvme | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/common/nvme b/common/nvme index 1190de70..688193b0 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