Skip to contentSkip to conversation

staging: android: logger..c fixed a brace coding style issue

PATCH In review abbasjasim 2 participants 2 messages Jul 28, 2013 – Jul 29, 2013 Staging

lore
Share & tools
lore

abbasjasim

author
#0 lore raw

PATCH 1/1 staging: android: logger..c fixed a brace coding style issue

fixed a coding style issue.

---
 drivers/staging/android/logger.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/staging/android/logger.c +2 -1
index ffc2d04..3d5180a 100644
@@ -81,8 +81,9 @@ static inline struct logger_log *file_get_log(struct file *file)
 	if (file->f_mode & FMODE_READ) {
 		struct logger_reader *reader = file->private_data;
 		return reader->log;
-	} else
+	} else {
 		return file->private_data;
+	}
 }
 
 /*
Signature · 1 line
1.8.1.2
maintainer
#1 lore raw
Quoted 12 lines · abbasjasim

fixed a coding style issue.

---
 drivers/staging/android/logger.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/staging/android/logger.c +0 -0
index ffc2d04..3d5180a 100644

drivers/staging/android/logger.c static inline struct logger_log *file_get_log(struct file *file) · line 86

Quoted 7 lines
drivers/staging/android/logger.c +2 -1
@@ -81,8 +81,9 @@ static inline struct logger_log *file_get_log(struct file *file)
 	if (file->f_mode & FMODE_READ) {
 		struct logger_reader *reader = file->private_data;
 		return reader->log;
-	} else
+	} else {
 		return file->private_data;
+	}

I think the existing code is just fine, no need for this patch.

thanks,

greg k-h