* Re: v9fs-vfs-file-dentry-and-directory-operations.patch added to -mm tree
[not found] <200506060624.j566OQpF010552@shell0.pdx.osdl.net>
@ 2005-06-06 9:28 ` Alexey Dobriyan
0 siblings, 0 replies; only message in thread
From: Alexey Dobriyan @ 2005-06-06 9:28 UTC (permalink / raw)
To: ericvh; +Cc: akpm, linux-kernel
On Monday 06 June 2005 10:24, akpm@osdl.org 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.
^ permalink raw reply [flat|nested] only message in thread