aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wan/n2.c
diff options
context:
space:
mode:
authorPeng Li <lipeng321@huawei.com>2021-05-25 22:07:54 +0800
committerDavid S. Miller <davem@davemloft.net>2021-05-25 15:41:54 -0700
commit9e7ee10f169f790ee1a7146cf2c0befa970f19a5 (patch)
tree11388f4069d40addc7f22f93c9a203eb86152177 /drivers/net/wan/n2.c
parentnet: wan: remove redundant blank lines (diff)
downloadlinux-dev-9e7ee10f169f790ee1a7146cf2c0befa970f19a5.tar.xz
linux-dev-9e7ee10f169f790ee1a7146cf2c0befa970f19a5.zip
net: wan: add blank line after declarations
This patch fixes the checkpatch error about missing a blank line after declarations. Signed-off-by: Peng Li <lipeng321@huawei.com> Signed-off-by: Guangbin Huang <huangguangbin2@huawei.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/wan/n2.c')
-rw-r--r--drivers/net/wan/n2.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/wan/n2.c b/drivers/net/wan/n2.c
index dd39789ebfa0..5ad8c5032900 100644
--- a/drivers/net/wan/n2.c
+++ b/drivers/net/wan/n2.c
@@ -143,6 +143,7 @@ static __inline__ u8 sca_get_page(card_t *card)
static __inline__ void openwin(card_t *card, u8 page)
{
u8 psr = inb(card->io + N2_PSR);
+
outb((psr & ~PSR_PAGEBITS) | page, card->io + N2_PSR);
}
@@ -283,6 +284,7 @@ static void n2_destroy_card(card_t *card)
for (cnt = 0; cnt < 2; cnt++)
if (card->ports[cnt].card) {
struct net_device *dev = port_to_dev(&card->ports[cnt]);
+
unregister_hdlc_device(dev);
}
@@ -522,6 +524,7 @@ static void __exit n2_cleanup(void)
while (card) {
card_t *ptr = card;
+
card = card->next_card;
n2_destroy_card(ptr);
}