From 9916d5e79cdffdd4ebea216a36dd04345032c1e1 Mon Sep 17 00:00:00 2001 From: "Anthony G. Basile" Date: Thu, 1 May 2014 09:49:01 -0400 Subject: src/libudev/path-util.c: don't use IN_SET() macro We do not import this macro which is unnecessarily complex for this one case. Signed-off-by: Anthony G. Basile --- src/libudev/path-util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/libudev/path-util.c b/src/libudev/path-util.c index 3512002cfa..41bc20de69 100644 --- a/src/libudev/path-util.c +++ b/src/libudev/path-util.c @@ -272,7 +272,7 @@ int path_is_mount_point(const char *t, bool allow_symlink) { r = name_to_handle_at(AT_FDCWD, t, &h.handle, &mount_id, allow_symlink ? AT_SYMLINK_FOLLOW : 0); if (r < 0) { - if (IN_SET(errno, ENOSYS, EOPNOTSUPP)) + if (errno == ENOSYS || errno == ENOTSUP) /* This kernel or file system does not support * name_to_handle_at(), hence fallback to the * traditional stat() logic */ -- cgit v1.2.3-54-g00ecf