Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ddc00b98 authored by Guillaume Vercoutere's avatar Guillaume Vercoutere Committed by Greg Kroah-Hartman
Browse files

staging: android: Correct coding style in logger.c



Correct intent and missing space

Signed-off-by: default avatarGuillaume Vercoutere <gvercoutere@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 0541cdf5
Loading
Loading
Loading
Loading
+14 −15
Original line number Diff line number Diff line
@@ -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);