Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1009984pxj; Thu, 27 May 2021 17:48:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy9JwzUFq+6cqF7X0mJV8QeDnEheHssdW/C9SGNIOuwEjt1Dc4S4eCyytRrswn1hh5d8+z3 X-Received: by 2002:aa7:ca1a:: with SMTP id y26mr7005110eds.297.1622162913490; Thu, 27 May 2021 17:48:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622162913; cv=none; d=google.com; s=arc-20160816; b=0wJoByMZJUOOUUQtKuF3sqL/+UrxmPIGa93vELRSOk/SwreFUqTVFAQdzcgEjjxrGn 7OpGG6L2jkrB6iVdieCGgPSyqJoyKwPct2yoV009X2W80cxMw/OhWcBsMJ8YFTiK+5kC OPsPjIxQIbEUVfPasQDf+bhGvXb/z3eWx47gex8oo1A4aMOwcOOcggv8CHlAzOzvLwJX E/K0E2WNPS/JZd53+QP/aheIqZqhakbHSfPxjX5o/E4TS2YipVG89jzh/46vjlHMsPCj Yf1yGVn4q8ZnQMJB60G4w4tt2EQFh8S4flz6NrnzbhNm0xIiqZzobzaFGu03xRrjWGN+ K6xA== 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=O13OrEvRvYoNz28KT/zXX8u02t1BuRhqRdVUxHnQIP0=; b=csM0LQn6fSbaGF12mwXqSUb4T82gUYuBNOMYI4pQ5ojv6270BXpVZyvrr2ZaBksCI2 nm4rqkBKJiCdfZgWb0KG0GvNRtQwsxDX01X9NLWjngRUin1TP9Ylg9rQQMgEblrwAcHq a5HH1je5nXAdlGJJBIAE/8MuG366LdKpzd2sBeaBpmWOpyvs4UfSLGaQbWCm/pYFADov GMetQKhHUVTvRrgaLQtnqI7RNcepS9+uFKUZkQWolt2xAVVrcQCD6npZcAgpf47WLGqh 9mVr/yCfHD8mzW1zbBfNYA5/P/C/jkcfswckX851euLnRssaaywYutiCquW81fMhsUOL 9/gw== 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 pk3si3472080ejb.598.2021.05.27.17.48.09; Thu, 27 May 2021 17:48:33 -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 S235909AbhE1ARk (ORCPT + 99 others); Thu, 27 May 2021 20:17:40 -0400 Received: from szxga03-in.huawei.com ([45.249.212.189]:2377 "EHLO szxga03-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234295AbhE1AR2 (ORCPT ); Thu, 27 May 2021 20:17:28 -0400 Received: from dggeml758-chm.china.huawei.com (unknown [172.30.72.57]) by szxga03-in.huawei.com (SkyGuard) with ESMTP id 4FrlVk49sHz65SY; Fri, 28 May 2021 08:12:14 +0800 (CST) Received: from dggemi759-chm.china.huawei.com (10.1.198.145) by dggeml758-chm.china.huawei.com (10.1.199.159) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2176.2; Fri, 28 May 2021 08:15:53 +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; Fri, 28 May 2021 08:15:52 +0800 From: Guangbin Huang To: , , , , CC: , , , , Subject: [PATCH V2 net-next 04/10] net: hdlc_fr: add some required spaces Date: Fri, 28 May 2021 08:12:43 +0800 Message-ID: <1622160769-6678-5-git-send-email-huangguangbin2@huawei.com> X-Mailer: git-send-email 2.8.1 In-Reply-To: <1622160769-6678-1-git-send-email-huangguangbin2@huawei.com> References: <1622160769-6678-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 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 4a6172c..512ef79 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