Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp236585pxj; Thu, 10 Jun 2021 20:41:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzIfSiK+P4BObcc3cD4fzEt3JQTU+UAKqy3bW7o37vvhEJLSpsVw0ZGBmxgcN8muG5voKzl X-Received: by 2002:a17:906:5f99:: with SMTP id a25mr1593837eju.45.1623382911355; Thu, 10 Jun 2021 20:41:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623382911; cv=none; d=google.com; s=arc-20160816; b=c05Qke+lT2ECVUgCS00dop4obBz7GMxs3oLeqYU+rEcC+9lxGOzwEGpPR/tzzOLxG3 Sqv7bwnEFF74WO8ubcvluQ/ApzkzttUjpTzO4n7OmB3G5Ggog05knRhZegZAYRSoGmXI 9TCj/PcF4lnnBT9gyA3vJudbBTFz7wDfitdXmblhajIYt5saN2dXRVcw3/8g5tgKl3lx /Xl1rPNjl2x/SV2mZ5R3SZSBxr9cXR6e4BPihdRpp6OHSUDfremE56mSkhtm7R7CQceB neRw7qgv6C/IOov/qNcaUWnrWsOs5Og7w3ebB3tW8OaPrqBgKplOUg5Tv3o1IKiTZmq4 E6rg== 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=1whOM4uKDphFWjA958LMc/uQ73Jfce46NjoArzAbB5k=; b=d9bsVzqCX3Go9SZ7SeLDLLeCIHTX2ZcP8nC6ZhEmgQ6IXNd9MEPmOEEi1vLuyoQ3H4 RWSIqMaCWs0q6cy7XNGyBNegvbFlsyWQLUeuvr3WbzfOC6shuk4qhfgZOT41aHo1l+ly oz13gKOwSDKDLOSxSLjxGIGRhZm0SqvpNc8z/eHPEW2Y2hFKYOg7agPVZ4qFExTlZGM7 F3Vf/57NCxwwQDrMe1nOmQ30L22M0M75uXrANqEKmuRzAmA9rhh94dBn4AY8UipEau8i fNY/nSln7BOYO9fI/Oxi4umRHLzVJX1M/fDRuROHLXn2OD1gevWTGSOrKOIpVctllZOM 6rsg== 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 n30si4015256ejl.424.2021.06.10.20.41.28; Thu, 10 Jun 2021 20:41:51 -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 S231543AbhFKDld (ORCPT + 99 others); Thu, 10 Jun 2021 23:41:33 -0400 Received: from szxga01-in.huawei.com ([45.249.212.187]:3838 "EHLO szxga01-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230205AbhFKDlb (ORCPT ); Thu, 10 Jun 2021 23:41:31 -0400 Received: from dggemv703-chm.china.huawei.com (unknown [172.30.72.57]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4G1RKn6Bv5zXdg1; Fri, 11 Jun 2021 11:34:37 +0800 (CST) Received: from dggemi759-chm.china.huawei.com (10.1.198.145) by dggemv703-chm.china.huawei.com (10.3.19.46) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.1.2176.2; Fri, 11 Jun 2021 11:39:32 +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, 11 Jun 2021 11:39:31 +0800 From: Guangbin Huang To: , , , , CC: , , , Subject: [PATCH net-next 2/8] net: pc300too: add blank line after declarations Date: Fri, 11 Jun 2021 11:36:16 +0800 Message-ID: <1623382582-37854-3-git-send-email-huangguangbin2@huawei.com> X-Mailer: git-send-email 2.8.1 In-Reply-To: <1623382582-37854-1-git-send-email-huangguangbin2@huawei.com> References: <1623382582-37854-1-git-send-email-huangguangbin2@huawei.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.67.165.24] X-ClientProxiedBy: dggems705-chm.china.huawei.com (10.3.19.182) 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/pc300too.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/net/wan/pc300too.c b/drivers/net/wan/pc300too.c index 5ccaec9..8f592ff 100644 --- a/drivers/net/wan/pc300too.c +++ b/drivers/net/wan/pc300too.c @@ -158,8 +158,8 @@ static void pc300_set_iface(port_t *port) static int pc300_open(struct net_device *dev) { port_t *port = dev_to_port(dev); - int result = hdlc_open(dev); + if (result) return result; @@ -426,6 +426,7 @@ static int pc300_pci_init_one(struct pci_dev *pdev, port_t *port = &card->ports[i]; struct net_device *dev = port->netdev; hdlc_device *hdlc = dev_to_hdlc(dev); + port->chan = i; spin_lock_init(&port->lock); -- 2.8.1