mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
[PATCH] fs: Removing useless casts
* Removing useless casts * Removing useless wrapper * Conversion from kmalloc+memset to kzalloc Signed-off-by: Panagiotis Issaris <[email protected]> Acked-by: Dave Kleikamp <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
f8314dc60c
commit
f52720ca5f
21 changed files with 37 additions and 48 deletions
|
|
@ -76,7 +76,7 @@ void *hpfs_map_4sectors(struct super_block *s, unsigned secno, struct quad_buffe
|
|||
return NULL;
|
||||
}
|
||||
|
||||
qbh->data = data = (char *)kmalloc(2048, GFP_NOFS);
|
||||
qbh->data = data = kmalloc(2048, GFP_NOFS);
|
||||
if (!data) {
|
||||
printk("HPFS: hpfs_map_4sectors: out of memory\n");
|
||||
goto bail;
|
||||
|
|
|
|||
Loading…
Reference in a new issue