Skip to content

Commit

Permalink
staging: android: logger: Fix some sparse and whitespace issues
Browse files Browse the repository at this point in the history
Fix a few sparse warnings, and improve whitespace.

Cc: Brian Swetland <swetland@google.com>
Signed-off-by: Tim Bird <tim.bird@am.sony.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Tim Bird authored and Greg Kroah-Hartman committed May 10, 2012
1 parent 10b2419 commit e7f3eb0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions drivers/staging/android/logger.c
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,9 @@ struct logger_reader {
};

/* 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);
}


Expand Down Expand Up @@ -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
* 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)
{
struct logger_log *log = file_get_log(iocb->ki_filp);
Expand Down

0 comments on commit e7f3eb0

Please sign in to comment.