Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3490805pxj; Mon, 24 May 2021 07:56:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxWHEa09eteJ4aJZbRFJjsWEsWNzQNOOCfR9B9ktHI/zUTM8nQO5CzwtMDVvMRD1+pj/K05 X-Received: by 2002:a6b:6b11:: with SMTP id g17mr14946169ioc.72.1621868210431; Mon, 24 May 2021 07:56:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621868210; cv=none; d=google.com; s=arc-20160816; b=hDg0e15Ea/NoaVI+clmdrL43asMmxZSYU+YTurgqXUB7+ZiAjHUeZp9JZDa76z/H0B jjwZQGf8eEQCEHr8sg1Tyv3N3+VQFLjJC5l/iCuia8gxzFlWwBNg5/o56aBM+I+fY/KW +lpoy2ZVLox3QQRkJ4UE5SsQuic7K7EsuksQ08An+eiBMCpv2hdQwQ7x4zfBHv0XNTOw Frgfc8vJmpbQMH1cMM17W2We/6sOKNl6fIpWkgFZOjey3hqj9yc0uaAD8bZyJFs5zdUn 2/MOJLjuFGWdGvNEFxf3t/QtzYivX8RdsAOl+v34kKHr9Dp5TyUz+JCcOyCX/z+E7MQT Vj9Q== 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=4Km/IavlmalfvrOom3MsqGPZlhOmxsW7o3vwV4QKeVI=; b=K0fIbl5p8tusIwOeOj5xh+RPPkmI16I37//d1+nUVH9EHNnQOAs67BblxsU62ttyO4 ba6AY2loDHQNhVXXuNget/4fLB2cBBrwylZd0+QIxHht35OzH4xAgaP6dpAK09O0nF8o goes8EpwIouPu8NqH+FDmXQLxo5Y1pJW3YBHoGwtigUhwLLBSQT9s+6dO6S2v0HEDk6v 0G/riEmdMMWY00XGbQN8sbgvqWalISWFrAZvJ6X+ay9SYZi+9EIz5lLkc7NR28g2jitE lmXA12JUkfuZ6d5mzb3y+qQGSU+0lPeZNOCswvhr8Tv3076187TwLQF62Ejntuuhb/V9 Udvg== 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 q186si14109606iof.83.2021.05.24.07.56.37; Mon, 24 May 2021 07:56:50 -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 S233907AbhEXO4Z (ORCPT + 99 others); Mon, 24 May 2021 10:56:25 -0400 Received: from szxga07-in.huawei.com ([45.249.212.35]:3932 "EHLO szxga07-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233967AbhEXOvy (ORCPT ); Mon, 24 May 2021 10:51:54 -0400 Received: from dggems704-chm.china.huawei.com (unknown [172.30.72.58]) by szxga07-in.huawei.com (SkyGuard) with ESMTP id 4Fpg6R0XgwzBvt8; Mon, 24 May 2021 22:47:27 +0800 (CST) Received: from dggemi759-chm.china.huawei.com (10.1.198.145) by dggems704-chm.china.huawei.com (10.3.19.181) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.1.2176.2; Mon, 24 May 2021 22:50:17 +0800 Received: from localhost.localdomain (10.67.165.24) by dggemi759-chm.china.huawei.com (10.1.198.145) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2176.2; Mon, 24 May 2021 22:50:17 +0800 From: Guangbin Huang To: , , , , CC: , , , , Subject: [PATCH net-next 04/10] net: wan: code indent use tabs where possible Date: Mon, 24 May 2021 22:47:11 +0800 Message-ID: <1621867637-2680-5-git-send-email-huangguangbin2@huawei.com> X-Mailer: git-send-email 2.8.1 In-Reply-To: <1621867637-2680-1-git-send-email-huangguangbin2@huawei.com> References: <1621867637-2680-1-git-send-email-huangguangbin2@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 dggemi759-chm.china.huawei.com (10.1.198.145) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Peng Li Code indent should use tabs where possible. Signed-off-by: Peng Li Signed-off-by: Guangbin Huang --- drivers/net/wan/wanxl.c | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/drivers/net/wan/wanxl.c b/drivers/net/wan/wanxl.c index 566c519c6f65..0bcb21ddcc62 100644 --- a/drivers/net/wan/wanxl.c +++ b/drivers/net/wan/wanxl.c @@ -54,7 +54,7 @@ struct port { struct net_device *dev; struct card *card; spinlock_t lock; /* for wanxl_xmit */ - int node; /* physical port #0 - 3 */ + int node; /* physical port #0 - 3 */ unsigned int clock_type; int tx_in, tx_out; struct sk_buff *tx_skbs[TX_BUFFERS]; @@ -153,7 +153,7 @@ static inline void wanxl_tx_intr(struct port *port) struct net_device *dev = port->dev; while (1) { - desc_t *desc = &get_status(port)->tx_descs[port->tx_in]; + desc_t *desc = &get_status(port)->tx_descs[port->tx_in]; struct sk_buff *skb = port->tx_skbs[port->tx_in]; switch (desc->stat) { @@ -171,12 +171,12 @@ static inline void wanxl_tx_intr(struct port *port) dev->stats.tx_packets++; dev->stats.tx_bytes += skb->len; } - desc->stat = PACKET_EMPTY; /* Free descriptor */ + desc->stat = PACKET_EMPTY; /* Free descriptor */ dma_unmap_single(&port->card->pdev->dev, desc->address, skb->len, DMA_TO_DEVICE); dev_consume_skb_irq(skb); - port->tx_in = (port->tx_in + 1) % TX_BUFFERS; - } + port->tx_in = (port->tx_in + 1) % TX_BUFFERS; + } } /* Receive complete interrupt service */ @@ -233,15 +233,15 @@ static inline void wanxl_rx_intr(struct card *card) static irqreturn_t wanxl_intr(int irq, void *dev_id) { struct card *card = dev_id; - int i; - u32 stat; - int handled = 0; + int i; + u32 stat; + int handled = 0; - while((stat = readl(card->plx + PLX_DOORBELL_FROM_CARD)) != 0) { - handled = 1; + while ((stat = readl(card->plx + PLX_DOORBELL_FROM_CARD)) != 0) { + handled = 1; writel(stat, card->plx + PLX_DOORBELL_FROM_CARD); - for (i = 0; i < card->n_ports; i++) { + for (i = 0; i < card->n_ports; i++) { if (stat & (1 << (DOORBELL_FROM_CARD_TX_0 + i))) wanxl_tx_intr(&card->ports[i]); if (stat & (1 << (DOORBELL_FROM_CARD_CABLE_0 + i))) @@ -249,9 +249,9 @@ static irqreturn_t wanxl_intr(int irq, void *dev_id) } if (stat & (1 << DOORBELL_FROM_CARD_RX)) wanxl_rx_intr(card); - } + } - return IRQ_RETVAL(handled); + return IRQ_RETVAL(handled); } static netdev_tx_t wanxl_xmit(struct sk_buff *skb, struct net_device *dev) @@ -259,11 +259,11 @@ static netdev_tx_t wanxl_xmit(struct sk_buff *skb, struct net_device *dev) struct port *port = dev_to_port(dev); desc_t *desc; - spin_lock(&port->lock); + spin_lock(&port->lock); desc = &get_status(port)->tx_descs[port->tx_out]; - if (desc->stat != PACKET_EMPTY) { - /* should never happen - previous xmit should stop queue */ + if (desc->stat != PACKET_EMPTY) { + /* should never happen - previous xmit should stop queue */ #ifdef DEBUG_PKT printk(KERN_DEBUG "%s: transmitter buffer full\n", dev->name); #endif @@ -366,7 +366,7 @@ static int wanxl_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd) default: return hdlc_ioctl(dev, ifr, cmd); - } + } } static int wanxl_open(struct net_device *dev) -- 2.8.1