From 4d2283f87ed2f609df4a442efda459dd17fb7e60 Mon Sep 17 00:00:00 2001 From: Christoph Hellwig Date: Fri, 21 Mar 2025 08:21:34 +0100 Subject: [PATCH] common: allow _require_non_zoned_device without an argument So that callers can pass $SCRATCH_RTDEV directly without needing to check that it actually is set. Signed-off-by: Christoph Hellwig Reviewed-by: Darrick J. Wong Signed-off-by: Zorro Lang --- common/rc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/common/rc b/common/rc index f4774257..16d627e1 100644 --- a/common/rc +++ b/common/rc @@ -2541,8 +2541,7 @@ _require_non_zoned_device() { local target=$1 if [ -z $target ]; then - echo "Usage: _require_non_zoned_device " - exit 1 + return fi local type=`_zone_type ${target}` -- 2.47.3