From 6cca8b1b0b57db30feac2be774d7525dce8c0594 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Thu, 13 Jun 2024 20:22:22 +0200 Subject: [slx-dmsetup] Kill stray line --- modules.d/slx-dmsetup/hooks/dmsetup-slx-device | 1 - 1 file changed, 1 deletion(-) diff --git a/modules.d/slx-dmsetup/hooks/dmsetup-slx-device b/modules.d/slx-dmsetup/hooks/dmsetup-slx-device index ac965175..0888e97c 100755 --- a/modules.d/slx-dmsetup/hooks/dmsetup-slx-device +++ b/modules.d/slx-dmsetup/hooks/dmsetup-slx-device @@ -162,7 +162,6 @@ encrypt_device() { modprobe dm-crypt || echo "$0: dm-crypt loading failed, maybe builtin?" [ -b "$1" ] || return 1 [ -n "$2" ] || return 1 - [ -z "$3" ] && local dev_size="$( blockdev --getsz "$1" )" if [ -z "$dev_size" ]; then echo "$0: Cannot encrypt non-existent device $1" -- cgit v1.2.3-55-g7522