x86/apic: fix two slight indenting
PATCH 1/1 x86/apic: fix two slight indenting
There are two inconsistent indenting in calibrate_APIC_clock() and activate_managed(). Remove the surplus TAB.
--- arch/x86/kernel/apic/apic.c | 2 +- arch/x86/kernel/apic/vector.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
arch/x86/kernel/apic/apic.c +1 -1
@@ -937,7 +937,7 @@ static int __init calibrate_APIC_clock(void)if (levt->features &CLOCK_EVT_FEAT_DUMMY ) {pr_warning ("APIC timer disabled due to verification failure\n" ); -return -1 ; +return -1 ; }return 0 ;
arch/x86/kernel/apic/vector.c +1 -1
@@ -433,7 +433,7 @@ static int activate_managed(struct irq_data *irqd)pr_err ("Managed startup irq %u, no vector available\n" , irqd->irq); } -return ret; +return ret; } static int x86_vector_activate(struct irq_domain *dom, struct irq_data *irqd,
Signature · 1 line
1.8.3.1
This looks like it should go through the trivial tree. Although I'm not the maintainer of this code, it looks reasonable to me, and I'll give my:
-- Steve
Quoted 36 lines · On Fri, 27 Jul 2018 14:15:03 +0800 Yi Wang <[email protected]> wrote:
There are two inconsistent indenting in
calibrate_APIC_clock()andactivate_managed(). Remove the surplus TAB.Signed-off-by Yi Wang <[email protected]>Reviewed-by Jiang Biao <[email protected]>--- arch/x86/kernel/apic/apic.c | 2 +- arch/x86/kernel/apic/vector.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)arch/x86/kernel/apic/apic.c +1
-1@@ -937,7 +937,7 @@ static int __init calibrate_APIC_clock(void)if (levt->features &CLOCK_EVT_FEAT_DUMMY ) {pr_warning ("APIC timer disabled due to verification failure\n" ); -return -1 ; +return -1 ; }return 0 ;arch/x86/kernel/apic/vector.c +1
-1@@ -433,7 +433,7 @@ static int activate_managed(struct irq_data *irqd)pr_err ("Managed startup irq %u, no vector available\n" , irqd->irq); } -return ret; +return ret; } static int x86_vector_activate(struct irq_domain *dom, struct irq_data *irqd,
A message that is not in the archive (sent off-list or not yet received): CAHp75VdBgGLhWSS9gvt3D3WJhqhq1hqU=ybnJVcACUfjVzimGA@mail.gmail.com
PATCH 1/1 x86/apic: fix two slight indenting
Restore Cc list (it seems I sent it privately)
---------- Forwarded message ----------
From: Andy Shevchenko <[email protected]>
Date: Fri, Jul 27, 2018 at 1:33 PM
Subject: Re: [PATCH] x86/apic: fix two slight indenting
To: Yi Wang <[email protected]>
arch/x86/kernel/apic/apic.c static int __init calibrate_APIC_clock(void) · line 941
Quoted 8 lines · Yi Wang
There are two inconsistent indenting in
calibrate_APIC_clock()andactivate_managed(). Remove the surplus TAB.if (levt->features & CLOCK_EVT_FEAT_DUMMY) { pr_warning("APIC timer disabled due to verification failure\n");arch/x86/kernel/apic/apic.c +1
-1-return -1 ; +return -1 ; }
Slightly better fix is to replace with appropriate ERRNO constant at the same time.
To avoid bigger change for now, just change this one and IIUC one more above in the same function.
--
With Best Regards,
Andy Shevchenko
Signature · 2 lines
With Best Regards, Andy Shevchenko
tip-bot for Yi Wang
merge bot[tip:x86/apic] x86/apic: Trivial coding style fixes
In reply to Yi Wangx86/apic: Trivial coding style fixes
Commit-ID: 843c408905010fbc44a564d2de6a3cd68d986abf Gitweb: https://git.kernel.org/tip/843c408905010fbc44a564d2de6a3cd68d986abf Author: Yi Wang <[email protected]> AuthorDate: Fri, 27 Jul 2018 14:15:03 +0800 Committer: Thomas Gleixner <[email protected]> CommitDate: Mon, 30 Jul 2018 19:56:30 +0200
x86/apic: Trivial coding style fixes
There is inconsistent indenting in calibrate_APIC_clock() and activate_managed(). Remove the surplus TAB.
--- arch/x86/kernel/apic/apic.c | 2 +- arch/x86/kernel/apic/vector.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
arch/x86/kernel/apic/apic.c +1 -1
@@ -937,7 +937,7 @@ static int __init calibrate_APIC_clock(void)if (levt->features &CLOCK_EVT_FEAT_DUMMY ) {pr_warning ("APIC timer disabled due to verification failure\n" ); -return -1 ; +return -1 ; }return 0 ;
arch/x86/kernel/apic/vector.c +1 -1
@@ -415,7 +415,7 @@ static int activate_managed(struct irq_data *irqd)pr_err ("Managed startup irq %u, no vector available\n" , irqd->irq); } -return ret; +return ret; } static int x86_vector_activate(struct irq_domain *dom, struct irq_data *irqd,