mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Jiapeng Chong <jiapeng.chong@linux.alibaba.com>
To: tim@cyberelk.net
Cc: axboe@kernel.dk, linux-block@vger.kernel.org,
	linux-kernel@vger.kernel.org,
	Jiapeng Chong <jiapeng.chong@linux.alibaba.com>,
	Abaci Robot <abaci@linux.alibaba.com>
Subject: [PATCH 2/2] paride: clean up some inconsistent indenting
Date: Sat,  7 May 2022 17:15:35 +0800	[thread overview]
Message-ID: <20220507091536.32211-1-jiapeng.chong@linux.alibaba.com> (raw)

Eliminate the follow smatch warning:

drivers/block/paride/fit3.c:75 fit3_read_regr() warn: inconsistent
indenting.

Reported-by: Abaci Robot <abaci@linux.alibaba.com>
Signed-off-by: Jiapeng Chong <jiapeng.chong@linux.alibaba.com>
---
 drivers/block/paride/fit3.c | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)

diff --git a/drivers/block/paride/fit3.c b/drivers/block/paride/fit3.c
index 275d269458eb..05bc664829fb 100644
--- a/drivers/block/paride/fit3.c
+++ b/drivers/block/paride/fit3.c
@@ -60,12 +60,13 @@ static void  fit3_write_regr( PIA *pi, int cont, int regr, int val)
 }
 
 static int fit3_read_regr( PIA *pi, int cont, int regr )
-
-{	int  a, b;
+{
+	int a, b;
 
 	if (cont) {
-	  if (regr != 6) return 0xff;
-	  regr = 7;
+		if (regr != 6)
+			return 0xff;
+		regr = 7;
 	} 
 
 	switch (pi->mode) {
@@ -88,8 +89,8 @@ static int fit3_read_regr( PIA *pi, int cont, int regr )
 		return a;
 
 	}
-	return -1; 
 
+	return -1;
 }
 
 static void fit3_read_block( PIA *pi, char * buf, int count )
-- 
2.20.1.7.g153144c


             reply	other threads:[~2022-05-07  9:16 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-05-07  9:15 Jiapeng Chong [this message]
2022-05-07  9:15 ` [PATCH 1/2] " Jiapeng Chong

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=20220507091536.32211-1-jiapeng.chong@linux.alibaba.com \
    --to=jiapeng.chong@linux.alibaba.com \
    --cc=abaci@linux.alibaba.com \
    --cc=axboe@kernel.dk \
    --cc=linux-block@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=tim@cyberelk.net \
    /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

all inboxes | Powered by JetHome®