From: Jerry Stralko Date: Tue, 1 Jul 2014 11:13:18 +0000 (-0400) Subject: staging: android: logger: fixed checkpatch.pl warnings. X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=48d5bb4403a0380613267770f9dccb73ab7f98fa;p=openwrt%2Fstaging%2Fblogic.git staging: android: logger: fixed checkpatch.pl warnings. Signed-off-by: Jerry Stralko Signed-off-by: Greg Kroah-Hartman --- 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,