[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>
This commit is contained in:
committed by
Linus Torvalds
parent
f8314dc60c
commit
f52720ca5f
@@ -331,7 +331,7 @@ map_err_out:
|
||||
ntfs_inode **tmp;
|
||||
int new_size = (base_ni->nr_extents + 4) * sizeof(ntfs_inode *);
|
||||
|
||||
tmp = (ntfs_inode **)kmalloc(new_size, GFP_NOFS);
|
||||
tmp = kmalloc(new_size, GFP_NOFS);
|
||||
if (unlikely(!tmp)) {
|
||||
ntfs_error(base_ni->vol->sb, "Failed to allocate "
|
||||
"internal buffer.");
|
||||
@@ -2893,7 +2893,7 @@ rollback:
|
||||
if (!(base_ni->nr_extents & 3)) {
|
||||
int new_size = (base_ni->nr_extents + 4) * sizeof(ntfs_inode*);
|
||||
|
||||
extent_nis = (ntfs_inode**)kmalloc(new_size, GFP_NOFS);
|
||||
extent_nis = kmalloc(new_size, GFP_NOFS);
|
||||
if (unlikely(!extent_nis)) {
|
||||
ntfs_error(vol->sb, "Failed to allocate internal "
|
||||
"buffer during rollback.%s", es);
|
||||
|
Reference in New Issue
Block a user