X-Git-Url: https://git.karo-electronics.de/?a=blobdiff_plain;f=fs%2Fncpfs%2Fsymlink.c;h=e3d26c1bd105a388cf032c3586b192e6b5e56907;hb=ce6754235b423610e91f5300e1555c2e4ee1c03a;hp=f76b1392a012cbc291de7284437d862dc0c7a253;hpb=f5e54d6e53a20cef45af7499e86164f0e0d16bb2;p=mv-sheeva.git diff --git a/fs/ncpfs/symlink.c b/fs/ncpfs/symlink.c index f76b1392a01..e3d26c1bd10 100644 --- a/fs/ncpfs/symlink.c +++ b/fs/ncpfs/symlink.c @@ -20,7 +20,6 @@ * */ -#include #include @@ -49,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; @@ -127,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;