staging: android: logger: fixed checkpatch.pl warnings.
authorJerry Stralko <gerb.stralko@gmail.com>
Tue, 1 Jul 2014 11:13:18 +0000 (07:13 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 8 Jul 2014 22:42:19 +0000 (15:42 -0700)
Signed-off-by: Jerry Stralko <gerb.stralko@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/android/logger.c

index 2772e01b37f50e34484f271e4560a3ec2f0d6121..9b47e66599a3761ed995db78d57aaf585db6359d 100644 (file)
@@ -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,