]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - net/socket.c
[NET]: Remove more unneeded typecasts on *malloc()
[net-next-2.6.git] / net / socket.c
index 06fa217f58a99cb93b72b28ca99e85b7dc3739cd..b38a263853c32038b07fe7dcb9dae457d4456722 100644 (file)
@@ -993,7 +993,7 @@ static int sock_fasync(int fd, struct file *filp, int on)
 
        if (on)
        {
-               fna=(struct fasync_struct *)kmalloc(sizeof(struct fasync_struct), GFP_KERNEL);
+               fna = kmalloc(sizeof(struct fasync_struct), GFP_KERNEL);
                if(fna==NULL)
                        return -ENOMEM;
        }