mirror of
https://github.com/torvalds/linux.git
synced 2024-12-23 03:11:46 +00:00
staging: android: Correct coding style in logger.c
Correct intent and missing space Signed-off-by: Guillaume Vercoutere <gvercoutere@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
0541cdf585
commit
ddc00b9825
@ -63,7 +63,6 @@ struct logger_log {
|
||||
|
||||
static LIST_HEAD(log_list);
|
||||
|
||||
|
||||
/**
|
||||
* struct logger_reader - a logging device open for reading
|
||||
* @log: The associated log
|
||||
@ -89,7 +88,6 @@ static size_t logger_offset(struct logger_log *log, size_t n)
|
||||
return n & (log->size - 1);
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* file_get_log - Given a file structure, return the associated log
|
||||
*
|
||||
@ -122,7 +120,8 @@ static inline struct logger_log *file_get_log(struct file *file)
|
||||
* the log entry spans the end and beginning of the circular buffer.
|
||||
*/
|
||||
static struct logger_entry *get_entry_header(struct logger_log *log,
|
||||
size_t off, struct logger_entry *scratch)
|
||||
size_t off,
|
||||
struct logger_entry *scratch)
|
||||
{
|
||||
size_t len = min(sizeof(struct logger_entry), log->size - off);
|
||||
|
||||
@ -530,8 +529,9 @@ static int logger_open(struct inode *inode, struct file *file)
|
||||
mutex_unlock(&log->mutex);
|
||||
|
||||
file->private_data = reader;
|
||||
} else
|
||||
} else {
|
||||
file->private_data = log;
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
@ -799,7 +799,6 @@ static void __exit logger_exit(void)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
device_initcall(logger_init);
|
||||
module_exit(logger_exit);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user