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: <4994ede231971e39e3b7f51844d8868a@208suo.com>
Date:   Thu, 20 Jul 2023 17:44:44 +0800
From:   zhangyongle001@...suo.com
To:     linux-m68k@...ts.linux-m68k.org
Cc:     linux-kernel@...r.kernel.org
Subject: [PATCH] m68k: Fix the following checkpatch error:

ERROR: that open brace { should be on the previous line
ERROR: that open brace { should be on the previous line
ERROR: else should follow close brace '}'

Signed-off-by: zhangyongle <zhangyongle001@...suo.com >
---
  arch/m68k/bvme6000/config.c | 7 ++-----
  1 file changed, 2 insertions(+), 5 deletions(-)

diff --git a/arch/m68k/bvme6000/config.c b/arch/m68k/bvme6000/config.c
index 3a1d90e399e0..6bc33d5d4d73 100644
--- a/arch/m68k/bvme6000/config.c
+++ b/arch/m68k/bvme6000/config.c
@@ -290,8 +290,7 @@ int bvme6000_hwclk(int op, struct rtc_time *t)

  	rtc->msr = 0x40;	/* Ensure clock and real-time-mode-register
  				 * are accessible */
-	if (op)
-	{	/* Write.... */
+	if (op) {	/* Write.... */
  		rtc->t0cr_rtmr = t->tm_year%4;
  		rtc->bcd_tenms = 0;
  		rtc->bcd_sec = bin2bcd(t->tm_sec);
@@ -303,9 +302,7 @@ int bvme6000_hwclk(int op, struct rtc_time *t)
  		if (t->tm_wday >= 0)
  			rtc->bcd_dow = bin2bcd(t->tm_wday+1);
  		rtc->t0cr_rtmr = t->tm_year%4 | 0x08;
-	}
-	else
-	{	/* Read....  */
+	} else {	/* Read....  */
  		do {
  			t->tm_sec  = bcd2bin(rtc->bcd_sec);
  			t->tm_min  = bcd2bin(rtc->bcd_min);
-- 
2.40.1

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ