Loading drivers/staging/android/logger.c +14 −15 Original line number Diff line number Diff line Loading @@ -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 Loading @@ -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 * Loading Loading @@ -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); Loading Loading @@ -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; } Loading Loading @@ -799,7 +799,6 @@ static void __exit logger_exit(void) } } device_initcall(logger_init); module_exit(logger_exit); Loading Loading
drivers/staging/android/logger.c +14 −15 Original line number Diff line number Diff line Loading @@ -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 Loading @@ -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 * Loading Loading @@ -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); Loading Loading @@ -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; } Loading Loading @@ -799,7 +799,6 @@ static void __exit logger_exit(void) } } device_initcall(logger_init); module_exit(logger_exit); Loading