From a032129b80a24dfae171a2a3ed3954ca54769624 Mon Sep 17 00:00:00 2001 From: Rusty Bird Date: Fri, 15 Jul 2016 16:15:42 +0000 Subject: [PATCH] udev-block-add-change: simplify a check --- udev/udev-block-add-change | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/udev/udev-block-add-change b/udev/udev-block-add-change index 27ccef4..53c8006 100755 --- a/udev/udev-block-add-change +++ b/udev/udev-block-add-change @@ -86,11 +86,7 @@ fi # the same time) for part in /sys$DEVPATH/$NAME*; do if [ -d $part ]; then - if is_used $part; then - xs_remove - exit 0 - fi - if is_attached $part; then + if is_used $part || is_attached $part; then xs_remove exit 0 fi