[PATCH] uml: audio driver formatting
Whitespace and style fixes. Signed-off-by: Jeff Dike <jdike@addtoit.com> Cc: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
b612e475e7
commit
d471c0fca7
1 changed files with 73 additions and 87 deletions
|
@ -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:
|
||||
*/
|
||||
|
|
Loading…
Add table
Reference in a new issue