Skip to content

Commit 6bbfb07

Browse files
andidrLinus Torvalds
authored andcommitted
fs/cramfs/inode.c: remove unused variable
Remove a variable that is never read. Signed-off-by: Andi Drebes <lists-receive@programmierforen.de> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent b8dc93c commit 6bbfb07

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

‎fs/cramfs/inode.c‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ static void *cramfs_read(struct super_block *sb, unsigned int offset, unsigned i
148148
{
149149
struct address_space *mapping = sb->s_bdev->bd_inode->i_mapping;
150150
struct page *pages[BLKS_PER_BUF];
151-
unsigned i, blocknr, buffer, unread;
151+
unsigned i, blocknr, buffer;
152152
unsigned long devsize;
153153
char *data;
154154

@@ -175,7 +175,6 @@ static void *cramfs_read(struct super_block *sb, unsigned int offset, unsigned i
175175
devsize = mapping->host->i_size >> PAGE_CACHE_SHIFT;
176176

177177
/* Ok, read in BLKS_PER_BUF pages completely first. */
178-
unread = 0;
179178
for (i = 0; i < BLKS_PER_BUF; i++) {
180179
struct page *page = NULL;
181180

0 commit comments

Comments
 (0)