From: Lennart Poettering Date: Tue, 5 Apr 2022 21:34:16 +0000 (+0200) Subject: loop-util: use ERRNO_IS_DEVICE_ABSENT() macro where appropriate X-Git-Tag: v251-rc2~165^2~5 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=49043f811559a98232c0401371f85953cd0ae273;p=thirdparty%2Fsystemd.git loop-util: use ERRNO_IS_DEVICE_ABSENT() macro where appropriate --- diff --git a/src/shared/loop-util.c b/src/shared/loop-util.c index 4f9c2de5773..257af7340f0 100644 --- a/src/shared/loop-util.c +++ b/src/shared/loop-util.c @@ -536,7 +536,7 @@ static int loop_device_make_internal( if (loop < 0) { /* Somebody might've gotten the same number from the kernel, used the device, * and called LOOP_CTL_REMOVE on it. Let's retry with a new number. */ - if (!IN_SET(errno, ENOENT, ENXIO)) + if (!ERRNO_IS_DEVICE_ABSENT(errno)) return -errno; } else { r = loop_configure(loop, nr, &config, &try_loop_configure, &seqnum, ×tamp);