mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Andrey Smirnov <andrew.smirnov@gmail.com>
To: barebox@lists.infradead.org
Cc: Andrey Smirnov <andrew.smirnov@gmail.com>
Subject: [PATCH 2/3] fs: ramfs: Drop unused 'chunks' conter
Date: Tue, 12 Mar 2019 00:21:49 -0700	[thread overview]
Message-ID: <20190312072150.19092-2-andrew.smirnov@gmail.com> (raw)
In-Reply-To: <20190312072150.19092-1-andrew.smirnov@gmail.com>

This variable doesn't appear to be used anywhere in the code. Drop it.

Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com>
---
 fs/ramfs.c | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/fs/ramfs.c b/fs/ramfs.c
index 94ecb0597..eec7cfb5b 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--;
 }
 
 /* ---------------------------------------------------------------*/
-- 
2.20.1


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

  reply	other threads:[~2019-03-12  7:22 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-03-12  7:21 [PATCH 1/3] fs: ramfs: Drop unused 'handle' filed from struct ramfs_inode Andrey Smirnov
2019-03-12  7:21 ` Andrey Smirnov [this message]
2019-03-12  7:21 ` [PATCH 3/3] fs: ramfs: Drop unnecessary check in ramfs_mknod() Andrey Smirnov
2019-03-13  8:37 ` [PATCH 1/3] fs: ramfs: Drop unused 'handle' filed from struct ramfs_inode Sascha Hauer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20190312072150.19092-2-andrew.smirnov@gmail.com \
    --to=andrew.smirnov@gmail.com \
    --cc=barebox@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox