[PATCH 23/56] minix: Remove void casts
From: Jack Stone
Date: Wed Apr 08 2009 - 07:35:37 EST
Remove uneeded void casts
Signed-Off-By: Jack Stone <jwjstone@xxxxxxxxxxx>
---
fs/minix/dir.c | 8 ++++----
fs/minix/inode.c | 2 +-
2 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/fs/minix/dir.c b/fs/minix/dir.c
index d4946c4..e17634c 100644
--- a/fs/minix/dir.c
+++ b/fs/minix/dir.c
@@ -114,7 +114,7 @@ static int minix_readdir(struct file * filp, void * dirent, filldir_t filldir)
if (IS_ERR(page))
continue;
- kaddr = (char *)page_address(page);
+ kaddr = page_address(page);
p = kaddr+offset;
limit = kaddr + minix_last_byte(inode, n) - chunk_size;
for ( ; p <= limit; p = minix_next_entry(p, sbi)) {
@@ -189,7 +189,7 @@ minix_dirent *minix_find_entry(struct dentry *dentry, struct page **res_page)
if (IS_ERR(page))
continue;
- kaddr = (char*)page_address(page);
+ kaddr = page_address(page);
limit = kaddr + minix_last_byte(dir, n) - sbi->s_dirsize;
for (p = kaddr; p <= limit; p = minix_next_entry(p, sbi)) {
if (sbi->s_version == MINIX_V3) {
@@ -246,7 +246,7 @@ int minix_add_link(struct dentry *dentry, struct inode *inode)
if (IS_ERR(page))
goto out;
lock_page(page);
- kaddr = (char*)page_address(page);
+ kaddr = page_address(page);
dir_end = kaddr + minix_last_byte(dir, n);
limit = kaddr + PAGE_CACHE_SIZE - sbi->s_dirsize;
for (p = kaddr; p <= limit; p = minix_next_entry(p, sbi)) {
@@ -392,7 +392,7 @@ int minix_empty_dir(struct inode * inode)
if (IS_ERR(page))
continue;
- kaddr = (char *)page_address(page);
+ kaddr = page_address(page);
limit = kaddr + minix_last_byte(inode, i) - sbi->s_dirsize;
for (p = kaddr; p <= limit; p = minix_next_entry(p, sbi)) {
if (sbi->s_version == MINIX_V3) {
diff --git a/fs/minix/inode.c b/fs/minix/inode.c
index daad3c2..eb74488 100644
--- a/fs/minix/inode.c
+++ b/fs/minix/inode.c
@@ -57,7 +57,7 @@ static struct kmem_cache * minix_inode_cachep;
static struct inode *minix_alloc_inode(struct super_block *sb)
{
struct minix_inode_info *ei;
- ei = (struct minix_inode_info *)kmem_cache_alloc(minix_inode_cachep, GFP_KERNEL);
+ ei = kmem_cache_alloc(minix_inode_cachep, GFP_KERNEL);
if (!ei)
return NULL;
return &ei->vfs_inode;
--
1.5.4.3
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/