Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1296396

[POC][PATCH 08/83] affs_evict_inode(): get rid of pointless casts

From Al Viro <viro@ZenIV.linux.org.uk>
Newsgroups linux.kernel
Subject [POC][PATCH 08/83] affs_evict_inode(): get rid of pointless casts
Date 2015-12-22 01:20 +0100
Message-ID <qIiQi-548-31@gated-at.bofh.it> (permalink)
References <qIing-4Eb-3@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


From: Al Viro <viro@zeniv.linux.org.uk>

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
---
 fs/affs/inode.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/fs/affs/inode.c b/fs/affs/inode.c
index dcfa753..dac9c7a 100644
--- a/fs/affs/inode.c
+++ b/fs/affs/inode.c
@@ -256,7 +256,7 @@ out:
 void
 affs_evict_inode(struct inode *inode)
 {
-	unsigned long cache_page;
+	void *cache_page;
 	pr_debug("evict_inode(ino=%lu, nlink=%u)\n",
 		 inode->i_ino, inode->i_nlink);
 	truncate_inode_pages_final(&inode->i_data);
@@ -269,12 +269,12 @@ affs_evict_inode(struct inode *inode)
 	invalidate_inode_buffers(inode);
 	clear_inode(inode);
 	affs_free_prealloc(inode);
-	cache_page = (unsigned long)AFFS_I(inode)->i_lc;
+	cache_page = AFFS_I(inode)->i_lc;
 	if (cache_page) {
 		pr_debug("freeing ext cache\n");
 		AFFS_I(inode)->i_lc = NULL;
 		AFFS_I(inode)->i_ac = NULL;
-		free_page((void *)cache_page);
+		free_page(cache_page);
 	}
 	affs_brelse(AFFS_I(inode)->i_ext_bh);
 	AFFS_I(inode)->i_ext_last = ~1;
-- 
2.1.4

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Back to linux.kernel | Previous | Next | Find similar | Unroll thread


Thread

[POC][PATCH 08/83] affs_evict_inode(): get rid of pointless casts Al Viro <viro@ZenIV.linux.org.uk> - 2015-12-22 01:20 +0100

csiph-web