summaryrefslogtreecommitdiffstats
path: root/fs/ramfs.c
diff options
context:
space:
mode:
authorAndrey Smirnov <andrew.smirnov@gmail.com>2019-03-12 00:21:49 -0700
committerSascha Hauer <s.hauer@pengutronix.de>2019-03-13 09:37:03 +0100
commit956db2799fac56ca73b60f27675b42dcf7907275 (patch)
treeedd20ffa420310f35a5372c3793c5154855612b1 /fs/ramfs.c
parent0898275f3452f886bf2e7092dc3315e01aa6ab8e (diff)
downloadbarebox-956db2799fac56ca73b60f27675b42dcf7907275.tar.gz
barebox-956db2799fac56ca73b60f27675b42dcf7907275.tar.xz
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 <andrew.smirnov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'fs/ramfs.c')
-rw-r--r--fs/ramfs.c4
1 files changed, 0 insertions, 4 deletions
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--;
}
/* ---------------------------------------------------------------*/