diff options
author | Panagiotis Issaris <takis@issaris.org> | 2006-09-27 04:49:39 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-09-27 11:26:10 -0400 |
commit | f52720ca5f48574e347dff35ffe6b389ace61537 (patch) | |
tree | 7efc8ec6bad32b98e406a5c553149d57e46bd07e /fs/coda/dir.c | |
parent | f8314dc60ccba7e41f425048c4160dc7f63377d5 (diff) |
[PATCH] fs: Removing useless casts
* Removing useless casts
* Removing useless wrapper
* Conversion from kmalloc+memset to kzalloc
Signed-off-by: Panagiotis Issaris <takis@issaris.org>
Acked-by: Dave Kleikamp <shaggy@austin.ibm.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'fs/coda/dir.c')
-rw-r--r-- | fs/coda/dir.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/coda/dir.c b/fs/coda/dir.c index 71f2ea632e53..8651ea6a23b7 100644 --- a/fs/coda/dir.c +++ b/fs/coda/dir.c | |||
@@ -513,7 +513,7 @@ static int coda_venus_readdir(struct file *filp, filldir_t filldir, | |||
513 | ino_t ino; | 513 | ino_t ino; |
514 | int ret, i; | 514 | int ret, i; |
515 | 515 | ||
516 | vdir = (struct venus_dirent *)kmalloc(sizeof(*vdir), GFP_KERNEL); | 516 | vdir = kmalloc(sizeof(*vdir), GFP_KERNEL); |
517 | if (!vdir) return -ENOMEM; | 517 | if (!vdir) return -ENOMEM; |
518 | 518 | ||
519 | i = filp->f_pos; | 519 | i = filp->f_pos; |