]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
NTFS: Remove spurious void pointer casts from fs/ntfs/.
authorPekka Enberg <penberg@cs.helsinki.fi>
Wed, 25 May 2005 18:15:34 +0000 (21:15 +0300)
committerAnton Altaparmakov <aia21@cantab.net>
Fri, 27 May 2005 15:00:53 +0000 (16:00 +0100)
Signed-off-by: Pekka Enberg <penberg@cs.helsinki.fi>
Signed-off-by: Anton Altaparmakov <aia21@cantab.net>
fs/ntfs/ChangeLog
fs/ntfs/inode.c
fs/ntfs/unistr.c

index 7f7eec58fee2f713b9ce6d0fcab44836895ae1cb..f8ba90dd8e39d133bde7457c5e76d5d796899c37 100644 (file)
@@ -115,6 +115,7 @@ ToDo/Notes:
        - Use NTFS_MAX_CLUSTER_SIZE in super.c instead of hard coding 0x10000.
        - Use MAX_BUF_PER_PAGE instead of variable sized array allocation for
          better code generation and one less sparse warning in fs/ntfs/aops.c.
+       - Remove spurious void pointer casts from fs/ntfs/.  (Pekka Enberg)
 
 2.1.22 - Many bug and race fixes and error handling improvements.
 
index f7bee8d014d90d1420ed820b7284c8c067b62646..886214a77f90dceba5a89fd2207197323546aac3 100644 (file)
@@ -317,8 +317,7 @@ struct inode *ntfs_alloc_big_inode(struct super_block *sb)
        ntfs_inode *ni;
 
        ntfs_debug("Entering.");
-       ni = (ntfs_inode *)kmem_cache_alloc(ntfs_big_inode_cache,
-                       SLAB_NOFS);
+       ni = kmem_cache_alloc(ntfs_big_inode_cache, SLAB_NOFS);
        if (likely(ni != NULL)) {
                ni->state = 0;
                return VFS_I(ni);
@@ -343,7 +342,7 @@ static inline ntfs_inode *ntfs_alloc_extent_inode(void)
        ntfs_inode *ni;
 
        ntfs_debug("Entering.");
-       ni = (ntfs_inode *)kmem_cache_alloc(ntfs_inode_cache, SLAB_NOFS);
+       ni = kmem_cache_alloc(ntfs_inode_cache, SLAB_NOFS);
        if (likely(ni != NULL)) {
                ni->state = 0;
                return ni;
index 560b0ea255b0b6be01b5f3abcb4ad9d572c457da..19c42e231b4411ca270d48e2b6b3fac927190554 100644 (file)
@@ -264,7 +264,7 @@ int ntfs_nlstoucs(const ntfs_volume *vol, const char *ins,
 
        /* We don't trust outside sources. */
        if (ins) {
-               ucs = (ntfschar*)kmem_cache_alloc(ntfs_name_cache, SLAB_NOFS);
+               ucs = kmem_cache_alloc(ntfs_name_cache, SLAB_NOFS);
                if (ucs) {
                        for (i = o = 0; i < ins_len; i += wc_len) {
                                wc_len = nls->char2uni(ins + i, ins_len - i,