linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Joris Gutjahr <joris.gutjahr@gmail.com>
To: davem@davemloft.net, linux-ide@vger.kernel.org,
	linux-kernel@vger.kernel.org
Cc: Joris Gutjahr <joris.gutjahr@gmail.com>
Subject: [PATCH] Malformatted switch statment
Date: Sun, 28 Oct 2018 17:45:46 +0100	[thread overview]
Message-ID: <20181028164546.17178-1-joris.gutjahr@gmail.com> (raw)

I fixed this coding style error I got after running
checkpatch --file on this file.
The problem was that the whole case block was on one line.

Signed-off-by: Joris Gutjahr <joris.gutjahr@gmail.com>
---
 drivers/ide/amd74xx.c | 12 +++++++++---
 1 file changed, 9 insertions(+), 3 deletions(-)

diff --git a/drivers/ide/amd74xx.c b/drivers/ide/amd74xx.c
index cbfe846911d1..fa39f279bf53 100644
--- a/drivers/ide/amd74xx.c
+++ b/drivers/ide/amd74xx.c
@@ -273,9 +273,15 @@ static int amd74xx_probe(struct pci_dev *dev, const struct pci_device_id *id)
 	amd_clock = (ide_pci_clk ? ide_pci_clk : 33) * 1000;
 
 	switch (amd_clock) {
-	case 33000: amd_clock = 33333; break;
-	case 37000: amd_clock = 37500; break;
-	case 41000: amd_clock = 41666; break;
+	case 33000:
+		amd_clock = 33333;
+		break;
+	case 37000:
+		amd_clock = 37500;
+		break;
+	case 41000:
+		amd_clock = 41666;
+		break;
 	}
 
 	if (amd_clock < 20000 || amd_clock > 50000) {
-- 
2.19.1


             reply	other threads:[~2018-10-28 16:46 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-10-28 16:45 Joris Gutjahr [this message]
2018-12-03  6:04 ` [PATCH] Malformatted switch statment David Miller

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20181028164546.17178-1-joris.gutjahr@gmail.com \
    --to=joris.gutjahr@gmail.com \
    --cc=davem@davemloft.net \
    --cc=linux-ide@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).