Commit 48d5bb44 authored by Jerry Stralko's avatar Jerry Stralko Committed by Greg Kroah-Hartman

staging: android: logger: fixed checkpatch.pl warnings.

Signed-off-by: default avatarJerry Stralko <gerb.stralko@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 403f8af3
...@@ -110,8 +110,8 @@ static inline struct logger_log *file_get_log(struct file *file) ...@@ -110,8 +110,8 @@ static inline struct logger_log *file_get_log(struct file *file)
struct logger_reader *reader = file->private_data; struct logger_reader *reader = file->private_data;
return reader->log; return reader->log;
} else }
return file->private_data; return file->private_data;
} }
/* /*
...@@ -159,8 +159,7 @@ static size_t get_user_hdr_len(int ver) ...@@ -159,8 +159,7 @@ static size_t get_user_hdr_len(int ver)
{ {
if (ver < 2) if (ver < 2)
return sizeof(struct user_logger_entry_compat); return sizeof(struct user_logger_entry_compat);
else return sizeof(struct logger_entry);
return sizeof(struct logger_entry);
} }
static ssize_t copy_header_to_user(int ver, struct logger_entry *entry, static ssize_t copy_header_to_user(int ver, struct logger_entry *entry,
......
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