X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=fs%2Fncpfs%2Fsymlink.c;h=e3d26c1bd105a388cf032c3586b192e6b5e56907;hb=97bf2856c6014879bd04983a3e9dfcdac1e7fe85;hp=15697bc00dbe237a7a6bb272327fde66c405c710;hpb=5273a3df6485dc2ad6aa7ddd441b9a21970f003b;p=linux-2.6.git diff --git a/fs/ncpfs/symlink.c b/fs/ncpfs/symlink.c index 15697bc00..e3d26c1bd 100644 --- a/fs/ncpfs/symlink.c +++ b/fs/ncpfs/symlink.c @@ -20,7 +20,6 @@ * */ -#include #include @@ -36,8 +35,8 @@ /* these magic numbers must appear in the symlink file -- this makes it a bit more resilient against the magic attributes being set on random files. */ -#define NCP_SYMLINK_MAGIC0 le32_to_cpu(0x6c6d7973) /* "symlnk->" */ -#define NCP_SYMLINK_MAGIC1 le32_to_cpu(0x3e2d6b6e) +#define NCP_SYMLINK_MAGIC0 cpu_to_le32(0x6c6d7973) /* "symlnk->" */ +#define NCP_SYMLINK_MAGIC1 cpu_to_le32(0x3e2d6b6e) /* ----- read a symbolic link ------------------------------------------ */ @@ -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; @@ -67,8 +66,8 @@ static int ncp_symlink_readpage(struct file *file, struct page *page) if (NCP_FINFO(inode)->flags & NCPI_KLUDGE_SYMLINK) { if (length