Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3904175pxj; Tue, 8 Jun 2021 01:17:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwW++iJrU0xeQmBYYuxt9fx3yRfLSvmo+PlRezqH7r/Zwel3l0ZsYaEAQr+SR8gFOS/6L2F X-Received: by 2002:a17:906:c1d0:: with SMTP id bw16mr22361351ejb.146.1623140273696; Tue, 08 Jun 2021 01:17:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623140273; cv=none; d=google.com; s=arc-20160816; b=xG4R3eqv6RfL8fvNZsQnRCnhpFlOKE26mvA/tHzszOlffHxGg62Jgns/Tj9nGtQ4PI st7opoywaHNxn6kw69bWP33Qy6Jo0WrDeLQ0bxQsEft8iRv4k1Huq+B1rEDfffOeDdmM KD43d3jbqBdrLQbgChIFnyuYCb4GumY5I3rdPU48K8xPID07u7CC2RMwi8Is2XGDvcFx syyLSTPJx35GuLJtTo82OOrbr8l8x+ZVfkJlBI8txckS49qdy5hNTcanQWTlTQj9t1NA KipLAu+cIms54RrFwn2u5+m/1SKMTNxTE4U2R5A1pesKxbMpn90t5/VeaCKDAvvpjrNb X98Q== 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=fqpiz5YGIF5AEugLTQMImDzElFOqxpbF6kG7uAJpU90=; b=JiXT357f15k7p2NtAgTFWUsxqTxX8txDojp8LLE9wzoIAK+AU/5PUC57jC9J1EZAe+ j4KMihWnFVfs24Y5ehTksrI1FkivosGCAnNMJ6PFdQMT86h73h2iBJzmxly4xiWkpHcC umBvSVm53+tDTLAI0tmrnWooFQKLKMax7gaAO/eyuhCpI8/CDkBKSqW9k4K2qnFCHF7+ /HZO9dO9+QH0StY/IDO0GmKoPTQRUDmiiNuHxxEmie/ZVmYhwDzq1UVbIjUij24vwcVd f42kEedztonD+IrDD6IN3NXrTi+iOahQHuSDj9QrhD1OmybmJfU9Ckv6ATddjrM+gt9o ua/w== 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 t7si12904207ejx.540.2021.06.08.01.17.30; Tue, 08 Jun 2021 01:17:53 -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 S230450AbhFHIRs (ORCPT + 99 others); Tue, 8 Jun 2021 04:17:48 -0400 Received: from szxga02-in.huawei.com ([45.249.212.188]:4515 "EHLO szxga02-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229657AbhFHIRo (ORCPT ); Tue, 8 Jun 2021 04:17:44 -0400 Received: from dggemv704-chm.china.huawei.com (unknown [172.30.72.53]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4FzjfP6Q41zZdjg; Tue, 8 Jun 2021 16:13:01 +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; Tue, 8 Jun 2021 16:15:50 +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; Tue, 8 Jun 2021 16:15:50 +0800 From: Guangbin Huang To: , , , , CC: , , , Subject: [PATCH net-next 02/16] net: farsync: add blank line after declarations Date: Tue, 8 Jun 2021 16:12:28 +0800 Message-ID: <1623139962-34847-3-git-send-email-huangguangbin2@huawei.com> X-Mailer: git-send-email 2.8.1 In-Reply-To: <1623139962-34847-1-git-send-email-huangguangbin2@huawei.com> References: <1623139962-34847-1-git-send-email-huangguangbin2@huawei.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.67.165.24] X-ClientProxiedBy: dggems704-chm.china.huawei.com (10.3.19.181) 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/farsync.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/wan/farsync.c b/drivers/net/wan/farsync.c index 0081ec8..9a69aa7 100644 --- a/drivers/net/wan/farsync.c +++ b/drivers/net/wan/farsync.c @@ -2484,6 +2484,7 @@ fst_add_one(struct pci_dev *pdev, const struct pci_device_id *ent) for ( i = 0 ; i < card->nports ; i++ ) { struct net_device *dev = alloc_hdlcdev(&card->ports[i]); hdlc_device *hdlc; + if (!dev) { while (i--) free_netdev(card->ports[i].dev); @@ -2608,6 +2609,7 @@ fst_remove_one(struct pci_dev *pdev) for (i = 0; i < card->nports; i++) { struct net_device *dev = port_to_dev(&card->ports[i]); + unregister_hdlc_device(dev); } -- 2.8.1