Commit e7f3eb0c authored by Tim Bird's avatar Tim Bird Committed by Greg Kroah-Hartman

staging: android: logger: Fix some sparse and whitespace issues

Fix a few sparse warnings, and improve whitespace.

Cc: Brian Swetland <swetland@google.com>
Signed-off-by: default avatarTim Bird <tim.bird@am.sony.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 10b24199
...@@ -65,9 +65,9 @@ struct logger_reader { ...@@ -65,9 +65,9 @@ struct logger_reader {
}; };
/* logger_offset - returns index 'n' into the log via (optimized) modulus */ /* logger_offset - returns index 'n' into the log via (optimized) modulus */
size_t logger_offset(struct logger_log *log, size_t n) static size_t logger_offset(struct logger_log *log, size_t n)
{ {
return n & (log->size-1); return n & (log->size - 1);
} }
...@@ -353,7 +353,7 @@ static ssize_t do_write_log_from_user(struct logger_log *log, ...@@ -353,7 +353,7 @@ static ssize_t do_write_log_from_user(struct logger_log *log,
* writev(), and aio_write(). Writes are our fast path, and we try to optimize * writev(), and aio_write(). Writes are our fast path, and we try to optimize
* them above all else. * them above all else.
*/ */
ssize_t logger_aio_write(struct kiocb *iocb, const struct iovec *iov, static ssize_t logger_aio_write(struct kiocb *iocb, const struct iovec *iov,
unsigned long nr_segs, loff_t ppos) unsigned long nr_segs, loff_t ppos)
{ {
struct logger_log *log = file_get_log(iocb->ki_filp); struct logger_log *log = file_get_log(iocb->ki_filp);
......
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