Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp5433893pxj; Wed, 26 May 2021 10:22:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzdwmhZCFAOTjfy/7zGDQtC9ZZ5P8NiN0maITFEZi8pBMW2d4wuXd8juVJLJ1nfhk7sHH/b X-Received: by 2002:a6b:e90a:: with SMTP id u10mr27079449iof.9.1622049759856; Wed, 26 May 2021 10:22:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622049759; cv=none; d=google.com; s=arc-20160816; b=065ENhL3ZSTv3WpZLwSptKmcEDb8A8HeNBy3OThr8UGzHhGqXymPKS2n8p++7gIa/B PkDpm/AypNGUiEK7PXYNmA6gXNPLHkW9gfoBCH31rPSSeSAcvVTOwQavKmR93PyrKNi9 ChTjWxkIN9LAeiiu8T6XrCgX5U8jfbcMDeOvT2bNWnrIaIhqQ5PuVCP54dpJYnQQ9JXE QBkCfJ+mWd8ZstgfwN/oG0dWbkInuBXpcnNQGwUwRVgS4Bw1VnEu6ssg4ea+/qotzTsi KiYQ80OzwznlylxN2vZXAhNsfu5I0slgM2zAAPaWcyUk2K0zg9GRv+vCOhnAOD/mdH8m 81cw== 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=dXFX1dGvdl4qDZw9IyyK9ajOHF2irLtEFz4tvVcx7ic=; b=xJOOgS8SPgUWKOf4SJNQ3jWlEoaVnj2Q1WNTObfoINGRtXPGFkzmYrI0fl5gINP36C E1SZPLh0CBmAWUq+8EVhocMEpTxaZE67SjBNTY3B6kn96qYfzHjxJya6UdFA19XeI9K+ oNsBfwiMsyYZ8UeUkNlDwvRArGxs7zxEug9BkOPBa8BdTCz2IDkRMEhA4tPQwHM9XrLr LXwbfwoDmYtQAjh2BUZgRavNruarAPOCrl2LvA2AqOSRsHoVfMenmmKUPPXLZFgmleuj TlA5HX6loAvhrjuvdRMK02Kl/lewbQuAhn98tij9YiiEzBRVBgLO5t1FmAlA/Gr8NmEE rv3w== 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 s15si25949543iog.67.2021.05.26.10.22.16; Wed, 26 May 2021 10:22:39 -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 S234032AbhEZLtl (ORCPT + 99 others); Wed, 26 May 2021 07:49:41 -0400 Received: from szxga05-in.huawei.com ([45.249.212.191]:5558 "EHLO szxga05-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229947AbhEZLt3 (ORCPT ); Wed, 26 May 2021 07:49:29 -0400 Received: from dggems705-chm.china.huawei.com (unknown [172.30.72.59]) by szxga05-in.huawei.com (SkyGuard) with ESMTP id 4Fqpz43QNRzjWwr; Wed, 26 May 2021 19:45:04 +0800 (CST) Received: from dggemi759-chm.china.huawei.com (10.1.198.145) by dggems705-chm.china.huawei.com (10.3.19.182) 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:55 +0800 From: Guangbin Huang To: , , , , CC: , , , , Subject: [PATCH net-next 02/10] net: wan: add blank line after declarations Date: Wed, 26 May 2021 19:44:47 +0800 Message-ID: <1622029495-30357-3-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 This patch fixes the checkpatch error about missing a blank line after declarations. Signed-off-by: Peng Li Signed-off-by: Guangbin Huang --- drivers/net/wan/hdlc_fr.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/net/wan/hdlc_fr.c b/drivers/net/wan/hdlc_fr.c index 0b6e133de4ad..96e4a89fa923 100644 --- a/drivers/net/wan/hdlc_fr.c +++ b/drivers/net/wan/hdlc_fr.c @@ -329,6 +329,7 @@ static int pvc_open(struct net_device *dev) if (pvc->open_count++ == 0) { hdlc_device *hdlc = dev_to_hdlc(pvc->frad); + if (state(hdlc)->settings.lmi == LMI_NONE) pvc->state.active = netif_carrier_ok(pvc->frad); @@ -344,6 +345,7 @@ static int pvc_close(struct net_device *dev) if (--pvc->open_count == 0) { hdlc_device *hdlc = dev_to_hdlc(pvc->frad); + if (state(hdlc)->settings.lmi == LMI_NONE) pvc->state.active = 0; @@ -1143,6 +1145,7 @@ static void fr_destroy(struct net_device *frad) { hdlc_device *hdlc = dev_to_hdlc(frad); struct pvc_device *pvc = state(hdlc)->first_pvc; + state(hdlc)->first_pvc = NULL; /* All PVCs destroyed */ state(hdlc)->dce_pvc_count = 0; state(hdlc)->dce_changed = 1; -- 2.8.1