lkml.org 
[lkml]   [2005]   [Jun]   [6]   [last100]   RSS Feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
/
FromAlexey Dobriyan <>
SubjectRe: v9fs-vfs-file-dentry-and-directory-operations.patch added to -mm tree
DateMon, 6 Jun 2005 13:28:01 +0400
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.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-06-06 09:29    [from the cache]
©2003-2008