Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp4709664iob; Sun, 8 May 2022 22:50:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw4vOOGwK+kORWebzfpJreHIgR4rRg5WizKZZjjyId9t3PkTL6HF3FXgzJ3jhJZO+az0qv5 X-Received: by 2002:a05:6e02:128e:b0:2cd:aeb3:ab6 with SMTP id y14-20020a056e02128e00b002cdaeb30ab6mr5675654ilq.291.1652075454957; Sun, 08 May 2022 22:50:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652075454; cv=none; d=google.com; s=arc-20160816; b=kMjSLuZhraByPRPPgOZbbMZG7Iz05tckCxpYsNBOzdXpaSqECKUMvc6d3uao03Sdyl rkSkACDUt6KoTRmkqVqj5F0a2M2pxF7BaC1nDEFdIpmpb0hdofmByvyzQAUsdl4lVEgG dG/7/7kBjdJ6DbmuFMuFLX1gw3i1paaasoB9RQhtldk95XOLi8banRUtQBxmY+n9bsk8 ZoJ4Kusv9RgMW3VlYklPgEEyu/iVPBUyARioQwLQX0dtOEru/OpmJ69qsyg0y5kCEyxN 3qxXlFiUAeX9WDOndemm2n1yFvOvuPsfxTSZn2flabrMcAPzSFl8H+PWdxMhT40xxGTG TyLA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=4LHTHpGmy5zsvLi/MvpJWCeicf9dRHE/PEmMTJ1gqtQ=; b=OPxRNxObjIlMpsG9VfG1X4Z+Dml8Ondnp3Yv6RKkKuLtYGIHdzYQtXYIYXnFGupUyd rjw5Lv5+Zd/ugUFkTyHtAXjd5EzCxEugcaI9FFf0XyCWmKBArgP7tMo7prOdhI7hlbLg p9dIyKkoE62I22bDs7i5Ijn3hE06ccPX3eXrZoL0TxCP0ZX2rhvCTY73fKdZ1iSrLim3 HSY4HraYpddI1b+EEGroNIBPCku0+v3GZgF1yIuH0fepx8LOTYaGq0LYyTdKm0tb/uU9 5t1bHuQ73ELHITvr/W2nRyLHx1dVnsQc38BGxWYWb5m+sToDrxtunf1tfFCh2VWobzDz IWEA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id g11-20020a056e021e0b00b002cbed79bc4fsi6583847ila.23.2022.05.08.22.50.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 08 May 2022 22:50:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 8799212F1CF; Sun, 8 May 2022 22:46:39 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1383879AbiEGJUB (ORCPT + 99 others); Sat, 7 May 2022 05:20:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55302 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1383843AbiEGJT5 (ORCPT ); Sat, 7 May 2022 05:19:57 -0400 Received: from out30-42.freemail.mail.aliyun.com (out30-42.freemail.mail.aliyun.com [115.124.30.42]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 491E75712C; Sat, 7 May 2022 02:16:11 -0700 (PDT) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R201e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e04394;MF=jiapeng.chong@linux.alibaba.com;NM=1;PH=DS;RN=6;SR=0;TI=SMTPD_---0VCWHKSC_1651914966; Received: from localhost(mailfrom:jiapeng.chong@linux.alibaba.com fp:SMTPD_---0VCWHKSC_1651914966) by smtp.aliyun-inc.com(127.0.0.1); Sat, 07 May 2022 17:16:08 +0800 From: Jiapeng Chong To: tim@cyberelk.net Cc: axboe@kernel.dk, linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, Jiapeng Chong , Abaci Robot Subject: [PATCH 1/2] paride: clean up some inconsistent indenting Date: Sat, 7 May 2022 17:15:36 +0800 Message-Id: <20220507091536.32211-2-jiapeng.chong@linux.alibaba.com> X-Mailer: git-send-email 2.20.1.7.g153144c In-Reply-To: <20220507091536.32211-1-jiapeng.chong@linux.alibaba.com> References: <20220507091536.32211-1-jiapeng.chong@linux.alibaba.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE,UNPARSEABLE_RELAY autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Eliminate the follow smatch warning: drivers/block/paride/on26.c:158 on26_test_port() warn: inconsistent indenting. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- drivers/block/paride/on26.c | 85 +++++++++++++++++++------------------ 1 file changed, 44 insertions(+), 41 deletions(-) diff --git a/drivers/block/paride/on26.c b/drivers/block/paride/on26.c index 95ba256921f2..d2ee74dbee29 100644 --- a/drivers/block/paride/on26.c +++ b/drivers/block/paride/on26.c @@ -125,61 +125,64 @@ static void on26_disconnect ( PIA *pi ) #define RESET_WAIT 200 static int on26_test_port( PIA *pi) /* hard reset */ +{ + int i, m, d, x = 0, y = 0; -{ int i, m, d, x=0, y=0; - - pi->saved_r0 = r0(); - pi->saved_r2 = r2(); + pi->saved_r0 = r0(); + pi->saved_r2 = r2(); - d = pi->delay; - m = pi->mode; - pi->delay = 5; - pi->mode = 0; + d = pi->delay; + m = pi->mode; + pi->delay = 5; + pi->mode = 0; - w2(0xc); + w2(0xc); - CCP(0x30); CCP(0); + CCP(0x30); CCP(0); - w0(0xfe);w0(0xaa);w0(0x55);w0(0);w0(0xff); - i = ((r1() & 0xf0) << 4); w0(0x87); - i |= (r1() & 0xf0); w0(0x78); - w0(0x20);w2(4);w2(5); - i |= ((r1() & 0xf0) >> 4); - w2(4);w0(0xff); + w0(0xfe); w0(0xaa); w0(0x55); w0(0); w0(0xff); + i = ((r1() & 0xf0) << 4); w0(0x87); + i |= (r1() & 0xf0); w0(0x78); + w0(0x20); w2(4); w2(5); + i |= ((r1() & 0xf0) >> 4); + w2(4); w0(0xff); - if (i == 0xb5f) { + if (i == 0xb5f) { - w0(2); P1; w0(0); P2; - w0(3); P1; w0(0); P2; - w0(2); P1; w0(8); P2; udelay(100); - w0(2); P1; w0(0xa); P2; udelay(100); - w0(2); P1; w0(8); P2; udelay(1000); + w0(2); P1; w0(0); P2; + w0(3); P1; w0(0); P2; + w0(2); P1; w0(8); P2; udelay(100); + w0(2); P1; w0(0xa); P2; udelay(100); + w0(2); P1; w0(8); P2; udelay(1000); - on26_write_regr(pi,0,6,0xa0); + on26_write_regr(pi, 0, 6, 0xa0); - for (i=0;idelay = d; - pi->mode = m; - w0(pi->saved_r0); - w2(pi->saved_r2); + w0(4); P1; w0(4); P1; + } + + CCP(0x30); + + pi->delay = d; + pi->mode = m; + w0(pi->saved_r0); + w2(pi->saved_r2); - return 5; + return 5; } -- 2.20.1.7.g153144c