提交 d471c0fc 编写于 作者: J Jeff Dike 提交者: Linus Torvalds

[PATCH] uml: audio driver formatting

Whitespace and style fixes.
Signed-off-by: NJeff Dike <jdike@addtoit.com>
Cc: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>
Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
上级 b612e475
......@@ -91,7 +91,7 @@ static ssize_t hostaudio_read(struct file *file, char __user *buffer,
if(copy_to_user(buffer, kbuf, err))
err = -EFAULT;
out:
out:
kfree(kbuf);
return(err);
}
......@@ -202,7 +202,6 @@ static int hostaudio_open(struct inode *inode, struct file *file)
kfree(state);
return(ret);
}
state->fd = ret;
file->private_data = state;
return(0);
......@@ -215,7 +214,6 @@ static int hostaudio_release(struct inode *inode, struct file *file)
#ifdef DEBUG
printk("hostaudio: release called\n");
#endif
os_close_file(state->fd);
kfree(state);
......@@ -279,7 +277,6 @@ static int hostmixer_release(struct inode *inode, struct file *file)
return(0);
}
/* kernel module operations */
static const struct file_operations hostaudio_fops = {
......@@ -341,14 +338,3 @@ static void __exit hostaudio_cleanup_module (void)
module_init(hostaudio_init_module);
module_exit(hostaudio_cleanup_module);
/*
* Overrides for Emacs so that we follow Linus's tabbing style.
* Emacs will notice this stuff at the end of the file and automatically
* adjust the settings for this buffer only. This must remain at the end
* of the file.
* ---------------------------------------------------------------------------
* Local variables:
* c-file-style: "linux"
* End:
*/
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册