From: Christoph Hellwig Date: Fri, 21 Mar 2025 07:21:34 +0000 (+0100) Subject: common: allow _require_non_zoned_device without an argument X-Git-Tag: v2025.03.30~13 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=4d2283f87ed2f609df4a442efda459dd17fb7e60;p=xfstests-dev.git 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 --- 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}`