Re: v9fs-vfs-file-dentry-and-directory-operations.patch added to -mm tree

From: Alexey Dobriyan
Date: Mon Jun 06 2005 - 04:27:42 EST


On Monday 06 June 2005 10:24, akpm@xxxxxxxx wrote:
> v9fs: VFS file, dentry, and directory operations

> --- /dev/null
> +++ 25-akpm/fs/9p/vfs_file.c

> +static ssize_t
> +v9fs_file_read(struct file *filp, char __user * data, size_t count,
> + loff_t * offset)
> +{

> + char *buffer = NULL;

Unneeded assignment.

> + buffer = kmalloc(count, GFP_KERNEL);
> + if (buffer < 0)
> + return -ENOMEM;

buffer is a pointer.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/