summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJerry Stralko <gerb.stralko@gmail.com>2014-07-01 07:13:18 -0400
committerKarol Lewandowski <k.lewandowsk@samsung.com>2021-04-22 15:12:01 +0200
commit32e643bcd366e8549a49cf19c4402e1cf8e4f213 (patch)
treeff5b1446dc1ede30eac96be115b69c118fc3f976
parenta2e4782b98feb431d0a7301d38942d7503b879d6 (diff)
downloadlinux-tizen-modules-32e643bcd366e8549a49cf19c4402e1cf8e4f213.tar.gz
linux-tizen-modules-32e643bcd366e8549a49cf19c4402e1cf8e4f213.tar.bz2
linux-tizen-modules-32e643bcd366e8549a49cf19c4402e1cf8e4f213.zip
staging: android: logger: fixed checkpatch.pl warnings.
Signed-off-by: Jerry Stralko <gerb.stralko@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/staging/android/logger.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/drivers/staging/android/logger.c b/drivers/staging/android/logger.c
index 2772e01..9b47e66 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,