Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp293759pxj; Thu, 10 Jun 2021 00:28:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxTb3wh+xC2JJC1ll5uOz5RwkoFZHX3JcEZWp5jL1A/60wFiFLNHnx3SW9agkt1zy14bHir X-Received: by 2002:a17:906:14c9:: with SMTP id y9mr3349334ejc.192.1623310086730; Thu, 10 Jun 2021 00:28:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623310086; cv=none; d=google.com; s=arc-20160816; b=RwO2PVTbVsj8D+RGcO5jLX4x9clcbBFvgA4sDLgZfv6TVmWjEKU6W+fxQny39bTlXB nK8bEWfdnaYq7k1tyPX6fxbh9twvyTS5OTCvqf6vR9Vwd0Ugr9SvVVEezu5gth7EpOLD 0pkPdJZ34jNHk5LF4oUdKVfuX11vivJQ79K3pkJ91CJhpDdWKGoT8XkaKhOtO/o7BNkl EUe+PGk87WJWihnZ3IYqsWqjLlMl5I0F4LshQAjInwutDci8W9Wj3q+uZM1Z+eCk3o6E JXKxftUWh2jAgQ+YEcTlHhzluKDR1jV/MUvmGKs2oKWzVtb9DXhwkZKqrVHeEkezzIbd 23Hw== 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=SV6rY1gkXir+kFjgw7wJL6Nr/bz1EZmxuxfnbHdzUZw=; b=dGERUdQcNwJYvaRlw90MZ1Y9RHeuZOgy2dQwFP5twLIu5MpAwH4V8aA3LROMjNPX0f LXs+v77NL/5MiWWbbrssyaQOUiFKlwbwSZr/5pMu5Cg7OrpUTEupZJ3/miZeDHcOc1QN FX5SdwLP3ZBJTqTO+83b6qdurkDdgk42JmaozxSYe4r8QTZZx9TRN6aHrJsJidjGbXan CBnmSQ0fOQk+BoQ1SKojOfnZlVBUDsG6z+xdpQbPLgGV5eTYilAHoWKdM95Rpl2RWZwL pqeyOcm9fXoSyvilyNYTy0YIjU5GTFNfYi8Rkoc9xoUC4RjuZuBvq5Kp5naN8dydSci5 GFLg== 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 i14si2042393eje.489.2021.06.10.00.27.43; Thu, 10 Jun 2021 00:28:06 -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 S230319AbhFJHZ1 (ORCPT + 99 others); Thu, 10 Jun 2021 03:25:27 -0400 Received: from szxga02-in.huawei.com ([45.249.212.188]:5476 "EHLO szxga02-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230209AbhFJHZM (ORCPT ); Thu, 10 Jun 2021 03:25:12 -0400 Received: from dggemv704-chm.china.huawei.com (unknown [172.30.72.57]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4G0wNm38HPzZfs1; Thu, 10 Jun 2021 15:20:24 +0800 (CST) Received: from dggemi759-chm.china.huawei.com (10.1.198.145) by dggemv704-chm.china.huawei.com (10.3.19.47) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.1.2176.2; Thu, 10 Jun 2021 15:23:15 +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; Thu, 10 Jun 2021 15:23:14 +0800 From: Guangbin Huang To: , , , , CC: , , , Subject: [PATCH net-next 5/8] net: ixp4xx_hss: add some required spaces Date: Thu, 10 Jun 2021 15:20:02 +0800 Message-ID: <1623309605-15671-6-git-send-email-huangguangbin2@huawei.com> X-Mailer: git-send-email 2.8.1 In-Reply-To: <1623309605-15671-1-git-send-email-huangguangbin2@huawei.com> References: <1623309605-15671-1-git-send-email-huangguangbin2@huawei.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.67.165.24] X-ClientProxiedBy: dggems706-chm.china.huawei.com (10.3.19.183) 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 Add space required before the open parenthesis '('. Add space required after that close brace '}'. Signed-off-by: Peng Li Signed-off-by: Guangbin Huang --- drivers/net/wan/ixp4xx_hss.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/net/wan/ixp4xx_hss.c b/drivers/net/wan/ixp4xx_hss.c index d657bca..d8f1df9 100644 --- a/drivers/net/wan/ixp4xx_hss.c +++ b/drivers/net/wan/ixp4xx_hss.c @@ -322,7 +322,7 @@ static DEFINE_SPINLOCK(npe_lock); static const struct { int tx, txdone, rx, rxfree; -}queue_ids[2] = {{HSS0_PKT_TX0_QUEUE, HSS0_PKT_TXDONE_QUEUE, HSS0_PKT_RX_QUEUE, +} queue_ids[2] = {{HSS0_PKT_TX0_QUEUE, HSS0_PKT_TXDONE_QUEUE, HSS0_PKT_RX_QUEUE, HSS0_PKT_RXFREE0_QUEUE}, {HSS1_PKT_TX0_QUEUE, HSS1_PKT_TXDONE_QUEUE, HSS1_PKT_RX_QUEUE, HSS1_PKT_RXFREE0_QUEUE}, @@ -1177,7 +1177,7 @@ static int hss_hdlc_attach(struct net_device *dev, unsigned short encoding, if (encoding != ENCODING_NRZ) return -EINVAL; - switch(parity) { + switch (parity) { case PARITY_CRC16_PR1_CCITT: port->hdlc_cfg = 0; return 0; @@ -1264,7 +1264,7 @@ static int hss_hdlc_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd) if (cmd != SIOCWANDEV) return hdlc_ioctl(dev, ifr, cmd); - switch(ifr->ifr_settings.type) { + switch (ifr->ifr_settings.type) { case IF_GET_IFACE: ifr->ifr_settings.type = IF_IFACE_V35; if (ifr->ifr_settings.size < size) { @@ -1281,7 +1281,7 @@ static int hss_hdlc_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd) case IF_IFACE_SYNC_SERIAL: case IF_IFACE_V35: - if(!capable(CAP_NET_ADMIN)) + if (!capable(CAP_NET_ADMIN)) return -EPERM; if (copy_from_user(&new_line, line, size)) return -EFAULT; -- 2.8.1