kernel: printk: Fix a coding style issue.
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.
Signed-off-by Ralf Thielow <[email protected]>
--- kernel/printk.c | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-)
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 ;
Signature · 1 line
1.7.1
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.Signed-off-by Ralf Thielow <[email protected]>--- kernel/printk.c | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-)kernel/printk.c +0
-0
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?