]> git.proxmox.com Git - mirror_lxcfs.git/commitdiff
proc_fuse: remove unused variable
authorChristian Brauner <christian.brauner@ubuntu.com>
Mon, 6 Jul 2020 09:18:28 +0000 (11:18 +0200)
committerStéphane Graber <stgraber@ubuntu.com>
Mon, 6 Jul 2020 11:25:47 +0000 (07:25 -0400)
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/proc_fuse.c

index 21bed1edca16cde99ff680473cb50a80b0c94880..a99162c31afee5d8bb667575cae295223e517d74 100644 (file)
@@ -244,8 +244,7 @@ static inline bool startswith(const char *line, const char *pref)
 static int proc_swaps_read(char *buf, size_t size, off_t offset,
                           struct fuse_file_info *fi)
 {
-       __do_free char *cgroup = NULL, *memswlimit_str = NULL, *memusage_str = NULL,
-                      *memswusage_str = NULL;
+       __do_free char *cgroup = NULL, *memusage_str = NULL, *memswusage_str = NULL;
        struct fuse_context *fc = fuse_get_context();
        struct lxcfs_opts *opts = (struct lxcfs_opts *)fuse_get_context()->private_data;
        bool wants_swap = opts && !opts->swap_off && liblxcfs_can_use_swap();