Skip to contentSkip to conversation

kernel: printk: Fix a coding style issue.

PATCH In review Ralf Thielow 2 participants 2 messages Oct 19, 2010

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 kernel: printk: Fix a coding style issue.

Fixed a coding style issue of "do_syslog" in
case of open or close the log.

---
 kernel/printk.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
kernel/printk.c +1 -2
index 8fe465a..3539744 100644
@@ -273,9 +273,8 @@ int do_syslog(int type, char __user *buf, int len, bool from_file)
 		return error;
 
 	switch (type) {
-	case SYSLOG_ACTION_CLOSE:	/* Close log */
-		break;
 	case SYSLOG_ACTION_OPEN:	/* Open log */
+	case SYSLOG_ACTION_CLOSE:	/* Close log */
 		break;
 	case SYSLOG_ACTION_READ:	/* Read from log */
 		error = -EINVAL;
Signature · 1 line
1.7.1
#1 lore raw
Quoted 13 lines · On Tue, 19 Oct 2010 20:19:01 +0200 Ralf Thielow <[email protected]>…

Fixed a coding style issue of "do_syslog" in
case of open or close the log.

---
 kernel/printk.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
kernel/printk.c +0 -0
index 8fe465a..3539744 100644

kernel/printk.c int do_syslog(int type, char __user *buf, int len, bool from_file) · line 280

Quoted 10 lines
kernel/printk.c +1 -2
@@ -273,9 +273,8 @@ int do_syslog(int type, char __user *buf, int len, bool from_file)
 		return error;
 
 	switch (type) {
-	case SYSLOG_ACTION_CLOSE:	/* Close log */
-		break;
 	case SYSLOG_ACTION_OPEN:	/* Open log */
+	case SYSLOG_ACTION_CLOSE:	/* Close log */
 		break;
 	case SYSLOG_ACTION_READ:	/* Read from log */
 		error = -EINVAL;

I don't really think that the code needed fixing there?