Skip to contentSkip to conversation

x86/apic: fix two slight indenting

PATCH In review Yi Wang 4 participants 4 messages Jul 27, 2018 – Jul 30, 2018 1 message not in the archive x86

lore
Share & tools
lore

Yi Wang

author
#0 lore raw

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
index 5071cc7..f222ebc 100644
@@ -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
index b708f59..19e0b2f 100644
@@ -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
Acked-by on v1 1/1
#1 lore raw

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() 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
index 5071cc7..f222ebc 100644
@@ -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
index b708f59..19e0b2f 100644
@@ -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

#3 lore raw

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() and activate_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
#4 lore raw

[tip:x86/apic] x86/apic: Trivial coding style fixes

In reply to Yi Wang
x86/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
index 2aabd4cb0e3f..00011bc33263 100644
@@ -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
index a75de0792942..c943499375c3 100644
@@ -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,