summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/shared/memfd.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/shared/memfd.c b/src/shared/memfd.c
index dcebfc9d6f..6a2e12196a 100644
--- a/src/shared/memfd.c
+++ b/src/shared/memfd.c
@@ -39,16 +39,11 @@ struct sd_memfd {
int sd_memfd_new(sd_memfd **m, const char *name) {
- _cleanup_close_ int kdbus = -1;
_cleanup_free_ char *g = NULL;
sd_memfd *n;
assert_return(m, -EINVAL);
- kdbus = open("/dev/kdbus/control", O_RDWR|O_NOCTTY|O_CLOEXEC);
- if (kdbus < 0)
- return -errno;
-
if (name) {
/* The kernel side is pretty picky about the character
* set here, let's do the usual bus escaping to deal