From 956db2799fac56ca73b60f27675b42dcf7907275 Mon Sep 17 00:00:00 2001 From: Andrey Smirnov Date: Tue, 12 Mar 2019 00:21:49 -0700 Subject: fs: ramfs: Drop unused 'chunks' conter This variable doesn't appear to be used anywhere in the code. Drop it. Signed-off-by: Andrey Smirnov Signed-off-by: Sascha Hauer --- fs/ramfs.c | 4 ---- 1 file changed, 4 deletions(-) (limited to 'fs/ramfs.c') diff --git a/fs/ramfs.c b/fs/ramfs.c index 94ecb05975..eec7cfb5b7 100644 --- a/fs/ramfs.c +++ b/fs/ramfs.c @@ -99,8 +99,6 @@ static struct inode *ramfs_get_inode(struct super_block *sb, const struct inode return inode; } -static int chunks = 0; - static struct ramfs_chunk *ramfs_get_chunk(void) { struct ramfs_chunk *data = malloc(sizeof(struct ramfs_chunk)); @@ -113,7 +111,6 @@ static struct ramfs_chunk *ramfs_get_chunk(void) return NULL; } data->next = NULL; - chunks++; return data; } @@ -122,7 +119,6 @@ static void ramfs_put_chunk(struct ramfs_chunk *data) { free(data->data); free(data); - chunks--; } /* ---------------------------------------------------------------*/ -- cgit v1.2.3