Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1029698pxj; Thu, 17 Jun 2021 20:39:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx/WhPen42oYqAJo5TNcxjuVwB/9rnr8NRxUDYeeHNpX18xaYZEVwmW50FThuS/CnAuKdrc X-Received: by 2002:a05:6602:14ca:: with SMTP id b10mr5552237iow.9.1623987594765; Thu, 17 Jun 2021 20:39:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623987594; cv=none; d=google.com; s=arc-20160816; b=PKZEz0/H9W5ExjsWBQ5xSjxIl4eoA82LOYG5ucFixgnQoRNy5B6z5O6IF0BF2kGC4z xKKCV/E04tHQdBKvmSDFYHRYWpMGQZo56FA0BNFy73q9wzdn04hFWrUIXwRvMxYxui54 DCCdFyvD+92xt+TGTzxLleP9I/zcz/kB5A4L++F+YyngYOO4FiPLonBXS8c6oPm2G9Gm 6LBl6Jprq6k6ka+ZP+uunJVs6yE9DIit12gjOEyVZpl4NKeWMDiGaCvXWeQVuBpyc0aR /BFH6iMs8yj3HsaFML2RA1LD+w9FRNjSVOitpX6TftHcjyXYkVJTIJ3/OAkbFrL8mwKm Inuw== 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=Ekbo4dp1TZkrSQFotkiH6AhxigQ/Fykdm/C1Vt5E00c2NM1SJ9ZeneG5zMwY1wtx6d JjxpU2F2dxXiJWc8oAAv6cvMoLxdMjrCNGCT6UniSaBJQLfBuV3XeHXKBZ4uiBQal0we /REoC3qDQud0iOjeSZjHi+ntCS+F+tJ1ifbIV5eF736o71ABflsM20aygQI6iQtuvNkL YiurqZ5EKsz92elCgbLDZhAXhnRvVCq3dLnKlOfChLnqenkRsfUkWHQWJgzhDMUdPred yENhvHwAJmoiIy2Wen+OUklv0fJuPievEGTHrH5U1fPjD9dSl/aq46ts+IT1XbqqKUFZ WwyQ== 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 q10si4982810iod.29.2021.06.17.20.39.42; Thu, 17 Jun 2021 20:39:54 -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 S233704AbhFRCh6 (ORCPT + 99 others); Thu, 17 Jun 2021 22:37:58 -0400 Received: from szxga02-in.huawei.com ([45.249.212.188]:5396 "EHLO szxga02-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233647AbhFRChr (ORCPT ); Thu, 17 Jun 2021 22:37:47 -0400 Received: from dggeme755-chm.china.huawei.com (unknown [172.30.72.56]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4G5jcp4V1pz70m7; Fri, 18 Jun 2021 10:32:26 +0800 (CST) Received: from localhost.localdomain (10.67.165.24) by dggeme755-chm.china.huawei.com (10.3.19.101) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2176.2; Fri, 18 Jun 2021 10:35:37 +0800 From: Peng Li To: , , , , CC: , , Subject: [PATCH V2 net-next 4/7] net: hostess_sv11: fix the code style issue about switch and case Date: Fri, 18 Jun 2021 10:32:21 +0800 Message-ID: <1623983544-39879-5-git-send-email-lipeng321@huawei.com> X-Mailer: git-send-email 2.8.1 In-Reply-To: <1623983544-39879-1-git-send-email-lipeng321@huawei.com> References: <1623983544-39879-1-git-send-email-lipeng321@huawei.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.67.165.24] X-ClientProxiedBy: dggems703-chm.china.huawei.com (10.3.19.180) To dggeme755-chm.china.huawei.com (10.3.19.101) 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