From: Lennart Poettering Date: Tue, 9 Oct 2018 11:14:04 +0000 (+0200) Subject: device: clean up DeviceFound flags set X-Git-Tag: v240~592 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4cf997befa17b5d379e258c01f8372077be8503d;p=thirdparty%2Fsystemd.git device: clean up DeviceFound flags set No need to avoid bit 0. Also the U suffix has no effect, don't use it. --- diff --git a/src/core/device.h b/src/core/device.h index a119b33e57f..3062be782d6 100644 --- a/src/core/device.h +++ b/src/core/device.h @@ -11,9 +11,9 @@ typedef struct Device Device; * in quick succession). Hence we need to track precisely where it is already visible and where not. */ typedef enum DeviceFound { DEVICE_NOT_FOUND = 0, - DEVICE_FOUND_UDEV = 1U << 1, /* The device has shown up in the udev database */ - DEVICE_FOUND_MOUNT = 1U << 2, /* The device has shown up in /proc/self/mountinfo */ - DEVICE_FOUND_SWAP = 1U << 3, /* The device has shown up in /proc/swaps */ + DEVICE_FOUND_UDEV = 1 << 0, /* The device has shown up in the udev database */ + DEVICE_FOUND_MOUNT = 1 << 1, /* The device has shown up in /proc/self/mountinfo */ + DEVICE_FOUND_SWAP = 1 << 2, /* The device has shown up in /proc/swaps */ DEVICE_FOUND_MASK = DEVICE_FOUND_UDEV|DEVICE_FOUND_MOUNT|DEVICE_FOUND_SWAP, } DeviceFound;