From 48d5bb4403a0380613267770f9dccb73ab7f98fa Mon Sep 17 00:00:00 2001 From: Jerry Stralko Date: Tue, 1 Jul 2014 07:13:18 -0400 Subject: [PATCH] staging: android: logger: fixed checkpatch.pl warnings. Signed-off-by: Jerry Stralko Signed-off-by: Greg Kroah-Hartman --- drivers/staging/android/logger.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/drivers/staging/android/logger.c b/drivers/staging/android/logger.c index 2772e01b37f5..9b47e66599a3 100644 --- a/drivers/staging/android/logger.c +++ b/drivers/staging/android/logger.c @@ -110,8 +110,8 @@ static inline struct logger_log *file_get_log(struct file *file) struct logger_reader *reader = file->private_data; 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) { if (ver < 2) 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, -- 2.34.1