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
|
|
@ -48,7 +48,7 @@ static int ncp_symlink_readpage(struct file *file, struct page *page)
|
|||
char *buf = kmap(page);
|
||||
|
||||
error = -ENOMEM;
|
||||
rawlink=(char *)kmalloc(NCP_MAX_SYMLINK_SIZE, GFP_KERNEL);
|
||||
rawlink = kmalloc(NCP_MAX_SYMLINK_SIZE, GFP_KERNEL);
|
||||
if (!rawlink)
|
||||
goto fail;
|
||||
|
||||
|
|
@ -126,7 +126,7 @@ int ncp_symlink(struct inode *dir, struct dentry *dentry, const char *symname) {
|
|||
/* EPERM is returned by VFS if symlink procedure does not exist */
|
||||
return -EPERM;
|
||||
|
||||
rawlink=(char *)kmalloc(NCP_MAX_SYMLINK_SIZE, GFP_KERNEL);
|
||||
rawlink = kmalloc(NCP_MAX_SYMLINK_SIZE, GFP_KERNEL);
|
||||
if (!rawlink)
|
||||
return -ENOMEM;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue