Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp585200pxj; Thu, 17 Jun 2021 09:12:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw8EBAM/5Ma21hSz7PK5dZaXDIfq5fpuIbPLQ39gYCPw4v6EHYVAJ76lSTtvyY5r05IQ0y2 X-Received: by 2002:a17:906:6c88:: with SMTP id s8mr6057869ejr.129.1623946337534; Thu, 17 Jun 2021 09:12:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623946337; cv=none; d=google.com; s=arc-20160816; b=FR4Hddn6ZkDn+t9D9wbc2kEUoJggm0uwch2qI4ezCPLGsd7dEm97WQQueIHG0HpUrL kpiy9wEJtpJUvZedyukXc5QuTiiv70udfuU6UvGNkp1WrL7bl5Md34SqrXNRmP0VHX3a rCrepd2F4mZ2T+3wSuipQamk/xDZK+ThEZvXOgttYQfFpV8/aKZ3jBeT9lCI0mF+mfrs sGe1MTQJnqUa44K4BDhYH3bC4v7XS6bYVZGWLuFutHhMsM74Nw/xI26NDQ4QFshkXOrl P+yRbTam4ryMDmxCJlntN4JcBstrzudWphR42M9YrH0XzMZ9iedtBZCILC+vzyIjFYRl EOxA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from; bh=DsuXCoNXBo77quESN9isxQ6HO8e7LW5XBbZ/hlVuvyY=; b=j/bs/HFKmc/OiZcDP6vf+N4GfvHm01EO9qhbL+x6nFum1QIH9GyvngCEYgcJoRYCYU oz4qJAim8qKA+U09ykrNIkqsx4h9XJHr2L1wH4zvAzI7FEXaOb3/1jABfJMQMdWY5OHl fjn5CrQdLNXYta6+Bighs74znjzeH2kyv+JwdJXjWZ/EnkAEYUqEV8Cyb7Dmb1LJ40Zb b79pG7Tkb3O8aD+sp2rieFeSqiwyc40JmIAzfJDT3Gn9yyj1sgznsH9dm7+j7PYIQdV6 978QWQtXVR5cuWKYor525Gug9IP+wLzAadT2yqg9pgrOpGccQryOoRDJzWrHGW70q2SZ yMxg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q15si5546986ejn.13.2021.06.17.09.11.52; Thu, 17 Jun 2021 09:12:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233029AbhFQO7J (ORCPT + 99 others); Thu, 17 Jun 2021 10:59:09 -0400 Received: from szxga01-in.huawei.com ([45.249.212.187]:5028 "EHLO szxga01-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231959AbhFQO65 (ORCPT ); Thu, 17 Jun 2021 10:58:57 -0400 Received: from dggeme756-chm.china.huawei.com (unknown [172.30.72.55]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4G5Q4K33QWzXgtG; Thu, 17 Jun 2021 22:51:45 +0800 (CST) Received: from localhost.localdomain (10.67.165.24) by dggeme756-chm.china.huawei.com (10.3.19.102) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2176.2; Thu, 17 Jun 2021 22:56:48 +0800 From: Peng Li To: , , , , CC: , , Subject: [PATCH net-next 4/6] net: hostess_sv11: fix the code style issue about switch and case Date: Thu, 17 Jun 2021 22:53:33 +0800 Message-ID: <1623941615-26966-5-git-send-email-lipeng321@huawei.com> X-Mailer: git-send-email 2.8.1 In-Reply-To: <1623941615-26966-1-git-send-email-lipeng321@huawei.com> References: <1623941615-26966-1-git-send-email-lipeng321@huawei.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.67.165.24] X-ClientProxiedBy: dggems705-chm.china.huawei.com (10.3.19.182) To dggeme756-chm.china.huawei.com (10.3.19.102) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org According to the chackpatch.pl, switch and case should be at the same indent. Signed-off-by: Peng Li --- drivers/net/wan/hostess_sv11.c | 54 +++++++++++++++++++++--------------------- 1 file changed, 27 insertions(+), 27 deletions(-) diff --git a/drivers/net/wan/hostess_sv11.c b/drivers/net/wan/hostess_sv11.c index 8914cdd..7a59d7e 100644 --- a/drivers/net/wan/hostess_sv11.c +++ b/drivers/net/wan/hostess_sv11.c @@ -85,15 +85,15 @@ static int hostess_open(struct net_device *d) * Link layer up */ switch (dma) { - case 0: - err = z8530_sync_open(d, &sv11->chanA); - break; - case 1: - err = z8530_sync_dma_open(d, &sv11->chanA); - break; - case 2: - err = z8530_sync_txdma_open(d, &sv11->chanA); - break; + case 0: + err = z8530_sync_open(d, &sv11->chanA); + break; + case 1: + err = z8530_sync_dma_open(d, &sv11->chanA); + break; + case 2: + err = z8530_sync_txdma_open(d, &sv11->chanA); + break; } if (err) @@ -102,15 +102,15 @@ static int hostess_open(struct net_device *d) err = hdlc_open(d); if (err) { switch (dma) { - case 0: - z8530_sync_close(d, &sv11->chanA); - break; - case 1: - z8530_sync_dma_close(d, &sv11->chanA); - break; - case 2: - z8530_sync_txdma_close(d, &sv11->chanA); - break; + case 0: + z8530_sync_close(d, &sv11->chanA); + break; + case 1: + z8530_sync_dma_close(d, &sv11->chanA); + break; + case 2: + z8530_sync_txdma_close(d, &sv11->chanA); + break; } return err; } @@ -136,15 +136,15 @@ static int hostess_close(struct net_device *d) netif_stop_queue(d); switch (dma) { - case 0: - z8530_sync_close(d, &sv11->chanA); - break; - case 1: - z8530_sync_dma_close(d, &sv11->chanA); - break; - case 2: - z8530_sync_txdma_close(d, &sv11->chanA); - break; + case 0: + z8530_sync_close(d, &sv11->chanA); + break; + case 1: + z8530_sync_dma_close(d, &sv11->chanA); + break; + case 2: + z8530_sync_txdma_close(d, &sv11->chanA); + break; } return 0; } -- 2.8.1