Skip to content

Commit

Permalink
net: farsync: add blank line after declarations
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Peng Li authored and David S. Miller committed Jun 8, 2021
1 parent 34de4c8 commit 50d4c36
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/net/wan/farsync.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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);
}

Expand Down

0 comments on commit 50d4c36

Please sign in to comment.