Commit 898bc282 authored by Tal Shorer's avatar Tal Shorer Committed by Greg Kroah-Hartman

drivers: char: misc.c: remove trailing whitespace

Remove trailing whitespace from several lines in drivers/char/misc.c
This was done using scripts/cleanfile
Signed-off-by: default avatarTal Shorer <tal.shorer@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent d9411e57
...@@ -117,14 +117,14 @@ static int misc_open(struct inode * inode, struct file * file) ...@@ -117,14 +117,14 @@ static int misc_open(struct inode * inode, struct file * file)
const struct file_operations *new_fops = NULL; const struct file_operations *new_fops = NULL;
mutex_lock(&misc_mtx); mutex_lock(&misc_mtx);
list_for_each_entry(c, &misc_list, list) { list_for_each_entry(c, &misc_list, list) {
if (c->minor == minor) { if (c->minor == minor) {
new_fops = fops_get(c->fops); new_fops = fops_get(c->fops);
break; break;
} }
} }
if (!new_fops) { if (!new_fops) {
mutex_unlock(&misc_mtx); mutex_unlock(&misc_mtx);
request_module("char-major-%d-%d", MISC_MAJOR, minor); request_module("char-major-%d-%d", MISC_MAJOR, minor);
...@@ -167,7 +167,7 @@ static const struct file_operations misc_fops = { ...@@ -167,7 +167,7 @@ static const struct file_operations misc_fops = {
/** /**
* misc_register - register a miscellaneous device * misc_register - register a miscellaneous device
* @misc: device structure * @misc: device structure
* *
* Register a miscellaneous device with the kernel. If the minor * Register a miscellaneous device with the kernel. If the minor
* number is set to %MISC_DYNAMIC_MINOR a minor number is assigned * number is set to %MISC_DYNAMIC_MINOR a minor number is assigned
* and placed in the minor field of the structure. For other cases * and placed in the minor field of the structure. For other cases
...@@ -181,7 +181,7 @@ static const struct file_operations misc_fops = { ...@@ -181,7 +181,7 @@ static const struct file_operations misc_fops = {
* A zero is returned on success and a negative errno code for * A zero is returned on success and a negative errno code for
* failure. * failure.
*/ */
int misc_register(struct miscdevice * misc) int misc_register(struct miscdevice * misc)
{ {
dev_t dev; dev_t dev;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment