metadata: drop support for kernels < v3.15
authorDaniel Mack <zonque@gmail.com>
Tue, 12 Aug 2014 10:35:50 +0000 (12:35 +0200)
committerDaniel Mack <zonque@gmail.com>
Sun, 17 Aug 2014 19:44:30 +0000 (21:44 +0200)
metadata.c

index aa667ae6146d5746cd541506f3524baf7451f263..eb286aaf3e7ee0d3eece39250c21504520ceb8ad 100644 (file)
@@ -358,15 +358,7 @@ static int kdbus_meta_append_cgroup(struct kdbus_meta *meta)
        if (!buf)
                return -ENOMEM;
 
-#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,15,0)
        path = task_cgroup_path(current, buf, PAGE_SIZE);
-#else
-       ret = task_cgroup_path(current, buf, PAGE_SIZE);
-       if (ret < 0)
-               path = NULL;
-       else
-               path = buf;
-#endif
 
        if (path)
                ret = kdbus_meta_append_str(meta, KDBUS_ITEM_CGROUP, path);