All of lore.kernel.org
 help / color / mirror / Atom feed
* [patch 1/3] fs/cramfs/inode.c: remove unused variable
@ 2007-08-30 15:33 Andi Drebes
  0 siblings, 0 replies; only message in thread
From: Andi Drebes @ 2007-08-30 15:33 UTC (permalink / raw)
  To: kernel-janitors

This patch removes a variable that is never read.

Signed-off-by: Andi Drebes <lists-receive@programmierforen.de>
---
diff --git a/fs/cramfs/inode.c b/fs/cramfs/inode.c
index 34c9b91..5286f4e 100644
--- a/fs/cramfs/inode.c
+++ b/fs/cramfs/inode.c
@@ -148,7 +148,7 @@ static void *cramfs_read(struct super_block *sb, unsigned int offset, unsigned i
 {
 	struct address_space *mapping = sb->s_bdev->bd_inode->i_mapping;
 	struct page *pages[BLKS_PER_BUF];
-	unsigned i, blocknr, buffer, unread;
+	unsigned i, blocknr, buffer;
 	unsigned long devsize;
 	char *data;
 
@@ -175,7 +175,6 @@ static void *cramfs_read(struct super_block *sb, unsigned int offset, unsigned i
 	devsize = mapping->host->i_size >> PAGE_CACHE_SHIFT;
 
 	/* Ok, read in BLKS_PER_BUF pages completely first. */
-	unread = 0;
 	for (i = 0; i < BLKS_PER_BUF; i++) {
 		struct page *page = NULL;
 

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2007-08-30 15:33 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-08-30 15:33 [patch 1/3] fs/cramfs/inode.c: remove unused variable Andi Drebes

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.