Fix following errors and warnings:
WARNING: space prohibited before semicolon
ERROR: space prohibited before open square bracket '['
WARNING: line over 80 characters

Signed-off-by: Kefeng Wang <wangkefeng.w...@huawei.com>
---
 kernel/irq/proc.c | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)

diff --git a/kernel/irq/proc.c b/kernel/irq/proc.c
index 19ed5c4..291e383 100644
--- a/kernel/irq/proc.c
+++ b/kernel/irq/proc.c
@@ -276,7 +276,7 @@ static int name_unique(unsigned int irq, struct irqaction 
*new_action)
        int ret = 1;
 
        raw_spin_lock_irqsave(&desc->lock, flags);
-       for (action = desc->action ; action; action = action->next) {
+       for (action = desc->action; action; action = action->next) {
                if ((action != new_action) && action->name &&
                                !strcmp(new_action->name, action->name)) {
                        ret = 0;
@@ -289,7 +289,7 @@ static int name_unique(unsigned int irq, struct irqaction 
*new_action)
 
 void register_handler_proc(unsigned int irq, struct irqaction *action)
 {
-       char name [MAX_NAMELEN];
+       char name[MAX_NAMELEN];
        struct irq_desc *desc = irq_to_desc(irq);
 
        if (!desc->dir || action->dir || !action->name ||
@@ -309,7 +309,7 @@ void register_handler_proc(unsigned int irq, struct 
irqaction *action)
 
 void register_irq_proc(unsigned int irq, struct irq_desc *desc)
 {
-       char name [MAX_NAMELEN];
+       char name[MAX_NAMELEN];
 
        if (!root_irq_dir || (desc->irq_data.chip == &no_irq_chip) || desc->dir)
                return;
@@ -345,7 +345,7 @@ void register_irq_proc(unsigned int irq, struct irq_desc 
*desc)
 
 void unregister_irq_proc(unsigned int irq, struct irq_desc *desc)
 {
-       char name [MAX_NAMELEN];
+       char name[MAX_NAMELEN];
 
        if (!root_irq_dir || !desc->dir)
                return;
@@ -463,7 +463,8 @@ int show_interrupts(struct seq_file *p, void *v)
                seq_printf(p, " %8s", "None");
        }
 #ifdef CONFIG_GENERIC_IRQ_SHOW_LEVEL
-       seq_printf(p, " %-8s", irqd_is_level_type(&desc->irq_data) ? "Level" : 
"Edge");
+       seq_printf(p, " %-8s",
+                       irqd_is_level_type(&desc->irq_data) ? "Level" : "Edge");
 #endif
        if (desc->name)
                seq_printf(p, "-%-8s", desc->name);
-- 
1.8.2.1


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Reply via email to