lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20181028164546.17178-1-joris.gutjahr@gmail.com>
Date:   Sun, 28 Oct 2018 17:45:46 +0100
From:   Joris Gutjahr <joris.gutjahr@...il.com>
To:     davem@...emloft.net, linux-ide@...r.kernel.org,
        linux-kernel@...r.kernel.org
Cc:     Joris Gutjahr <joris.gutjahr@...il.com>
Subject: [PATCH] Malformatted switch statment

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@...il.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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ