Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1698785pxj; Sat, 5 Jun 2021 00:07:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzNpkpV204fAlMqmbrlf119PlhIlOHGzaiRwshg/2UloIZnFeWX8d4IE2sYWRcZI41ftgDe X-Received: by 2002:a05:6402:50d2:: with SMTP id h18mr8988469edb.10.1622876879192; Sat, 05 Jun 2021 00:07:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622876879; cv=none; d=google.com; s=arc-20160816; b=w6t0NNKAnWE6H+JTwSTbIMGJQzooojVtzEnYw9T7YV2u7hWSZws1UPl/pRyj53Raur YJtYq6TMBGLM3FFqc4weCODnWKR/BL9Xb4S+Tp7SZxQ0Qrzaz+MgqG7KbVGyqORB5462 2q242s/VY/2ZAhSETewkjDMKHYRGSThauWWwIj20Zocid5UhtX8LvMq4M5mj3ZOyhU9n l8ljNeQHeiTjNmUATAO1CGQ6QJu1yaGrw0P2oC56xgWJOMZr7nck6rI/W8qijWxPl39H eeJmDpw+uT54lfKOP7SWRoZtvwD0YNjQ36P9OVu2Jyaqhyr1gDxIM0C9f8G5u6plS3Ix pRTw== 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=sMZ2kA/XWpZo9wetc+tc3RSU7Q8yYYqxk6gWZli8McE=; b=zTWu62JGx9saNlmypKnFiohp7r++1CvtKLcaWRvV+Z/HKjLxKlILLjXJoENfb3ZZ6k E9sIasUpMDw29ZJ99vQbK57VGWy+bylMhyFy5dunyzGIBTQGB96sY1jBsfwpXvcmo2he 4GKSP6MMSG2cP5ctXh0pUkfO9gO8Sz+3Za6fx6YvuCn8osNrXnes0QpkyErJ6td8D2vU /KFaqfcoLAq5CoNEJTfan7vd3oOU65MbGpTHwr4G2FmfxC+nqN95o1lb9iJ9wNUnO8F4 ziMCJ63Kz3mKto2+FgOibx41Bk4bB2OoRYQM5S3KSpduvkr0WTddT53vyfEeJVSUYvW8 Y4Rg== 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 d26si7778056edr.567.2021.06.05.00.07.36; Sat, 05 Jun 2021 00:07:59 -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 S230108AbhFEHFa (ORCPT + 99 others); Sat, 5 Jun 2021 03:05:30 -0400 Received: from szxga02-in.huawei.com ([45.249.212.188]:4481 "EHLO szxga02-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229994AbhFEHFZ (ORCPT ); Sat, 5 Jun 2021 03:05:25 -0400 Received: from dggemv703-chm.china.huawei.com (unknown [172.30.72.56]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4FxrBS5RMzzYp18; Sat, 5 Jun 2021 15:00:48 +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; Sat, 5 Jun 2021 15:03:34 +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; Sat, 5 Jun 2021 15:03:34 +0800 From: Guangbin Huang To: , , , , CC: , , , Subject: [PATCH net-next 2/8] net: hd64570: add blank line after declarations Date: Sat, 5 Jun 2021 15:00:23 +0800 Message-ID: <1622876429-47278-3-git-send-email-huangguangbin2@huawei.com> X-Mailer: git-send-email 2.8.1 In-Reply-To: <1622876429-47278-1-git-send-email-huangguangbin2@huawei.com> References: <1622876429-47278-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/hd64570.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/wan/hd64570.c b/drivers/net/wan/hd64570.c index e0266c6..cca6101 100644 --- a/drivers/net/wan/hd64570.c +++ b/drivers/net/wan/hd64570.c @@ -345,6 +345,7 @@ static inline void sca_tx_intr(port_t *port) u32 desc_off = desc_offset(port, port->txlast, 1); u32 cda = sca_inw(dmac + CDAL, card); + if ((cda >= desc_off) && (cda < desc_off + sizeof(pkt_desc))) break; /* Transmitter is/will_be sending this frame */ @@ -371,6 +372,7 @@ static irqreturn_t sca_intr(int irq, void* dev_id) handled = 1; for (i = 0; i < 2; i++) { port_t *port = get_port(card, i); + if (port) { if (stat & SCA_INTR_MSCI(i)) sca_msci_intr(port); -- 2.8.1