Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp5226772pxj; Wed, 26 May 2021 05:59:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwpG6CYBANOz7v+biCpiADHqpRwDOnes35ZCOiyFtc8oQh6DxLJEST7n4lIYk+2YqP7Rn8D X-Received: by 2002:a05:6e02:1d18:: with SMTP id i24mr28838497ila.157.1622033954175; Wed, 26 May 2021 05:59:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622033954; cv=none; d=google.com; s=arc-20160816; b=isEYiBjHPyqpHCDggKIyyxD5tX18UxRMO9JfhECfzv1fpmqoZ1X6xrRuiAMUOddVUo H7lNXkb/feCqM4gDKRqdGR1QChR0DI4hShxha9Xsh3xp1VgSl+O2S8z+A9SYFIRDzGVO ceCJUkzug5wE7L+FQ/ezKKCoVZUjOb7kIgcwO1cdVLHM1u52BHpmOlqFkP/8jG0ihZlb KqSjHAYPddnSIPrlhG+uMFXQQLO9wVBDuf9breclKGBwBUGGB7RDbbsJ/VbHzor4d37Q vtdKqN7frrL7PrIg1cteAV7ymBs0y7wm6GxIny6tQNMRWYhMs8S1ZgYK5lbHsE3X5Lrx uJAA== 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=ECzIh7rakOi9WWhwsadmfbpRQQ+FBZ9IiVUNi5bVT7U=; b=h55UJNyAGKUpYZzONpoMrGe80qOGCFpb8Um9HNLQesvjqjfxbjsOx6tJ1WGGVV3m6+ cntWAc4vBpYcvRbNgBrcKujdndvCNu2h3z04RN3yiUObbOx3mg2WrssgLAxUpPPugIFe wYmAqhp7RmXr5/ez4cVleSFgv/QNeiUV1jZGhzcVZv/Qx+czLBdSC3ueFQe7IveyYR+X Q8Q++3qjJ6fz56nO0eMfgbKm1MO5hTQt+zi+LKDAUHbBXvCWfwgg8SMhR/k1YLQYRmu7 Vw1hBrJR1mOGtbTqPGOR2+xzB7rK3n1ExQ7LKdfSHffUqf67rsRIfsiPAmQ1mpHssYO4 vIWA== 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 g16si21520381jat.43.2021.05.26.05.59.00; Wed, 26 May 2021 05:59:14 -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 S234288AbhEZLuC (ORCPT + 99 others); Wed, 26 May 2021 07:50:02 -0400 Received: from szxga06-in.huawei.com ([45.249.212.32]:4012 "EHLO szxga06-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231210AbhEZLta (ORCPT ); Wed, 26 May 2021 07:49:30 -0400 Received: from dggems706-chm.china.huawei.com (unknown [172.30.72.60]) by szxga06-in.huawei.com (SkyGuard) with ESMTP id 4Fqpzg4nsvzmZM2; Wed, 26 May 2021 19:45:35 +0800 (CST) Received: from dggemi759-chm.china.huawei.com (10.1.198.145) by dggems706-chm.china.huawei.com (10.3.19.183) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.1.2176.2; Wed, 26 May 2021 19:47:56 +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; Wed, 26 May 2021 19:47:56 +0800 From: Guangbin Huang To: , , , , CC: , , , , Subject: [PATCH net-next 04/10] net: wan: add some required spaces Date: Wed, 26 May 2021 19:44:49 +0800 Message-ID: <1622029495-30357-5-git-send-email-huangguangbin2@huawei.com> X-Mailer: git-send-email 2.8.1 In-Reply-To: <1622029495-30357-1-git-send-email-huangguangbin2@huawei.com> References: <1622029495-30357-1-git-send-email-huangguangbin2@huawei.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.67.165.24] X-ClientProxiedBy: dggems701-chm.china.huawei.com (10.3.19.178) 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 spaces required after that close brace '}'. Add spaces required before the open parenthesis '('. Add spaces required after that ','. Add spaces required around that '='. Signed-off-by: Peng Li Signed-off-by: Guangbin Huang --- drivers/net/wan/hdlc_fr.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/drivers/net/wan/hdlc_fr.c b/drivers/net/wan/hdlc_fr.c index 4a6172cca682..512ef79459da 100644 --- a/drivers/net/wan/hdlc_fr.c +++ b/drivers/net/wan/hdlc_fr.c @@ -125,7 +125,7 @@ struct pvc_device { unsigned int fecn: 1; unsigned int becn: 1; unsigned int bandwidth; /* Cisco LMI reporting only */ - }state; + } state; }; struct frad_state { @@ -161,7 +161,7 @@ static inline void dlci_to_q922(u8 *hdr, u16 dlci) static inline struct frad_state *state(hdlc_device *hdlc) { - return(struct frad_state *)(hdlc->state); + return (struct frad_state *)(hdlc->state); } static inline struct pvc_device *find_pvc(hdlc_device *hdlc, u16 dlci) @@ -1223,7 +1223,8 @@ static int fr_ioctl(struct net_device *dev, struct ifreq *ifr) new_settings.dce != 1)) return -EINVAL; - result=hdlc->attach(dev, ENCODING_NRZ,PARITY_CRC16_PR1_CCITT); + result = hdlc->attach(dev, ENCODING_NRZ, + PARITY_CRC16_PR1_CCITT); if (result) return result; -- 2.8.1