Commit 0644a104 authored by Soumyajit Deb's avatar Soumyajit Deb Committed by Greg Kroah-Hartman

staging: hp100: Remove extra blank lines

Remove extra blank lines from the code blocks.
Reported by checkpatch.pl
Signed-off-by: default avatarSoumyajit Deb <debsoumyajit100@gmail.com>
Link: https://lore.kernel.org/r/20200325035410.23802-1-debsoumyajit100@gmail.comSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent a1f165a6
...@@ -220,7 +220,6 @@ module_param(hp100_mode, int, 0); ...@@ -220,7 +220,6 @@ module_param(hp100_mode, int, 0);
static int hp100_probe1(struct net_device *dev, int ioaddr, u_char bus, static int hp100_probe1(struct net_device *dev, int ioaddr, u_char bus,
struct pci_dev *pci_dev); struct pci_dev *pci_dev);
static int hp100_open(struct net_device *dev); static int hp100_open(struct net_device *dev);
static int hp100_close(struct net_device *dev); static int hp100_close(struct net_device *dev);
static netdev_tx_t hp100_start_xmit(struct sk_buff *skb, static netdev_tx_t hp100_start_xmit(struct sk_buff *skb,
...@@ -346,7 +345,6 @@ static __init int hp100_isa_probe1(struct net_device *dev, int ioaddr) ...@@ -346,7 +345,6 @@ static __init int hp100_isa_probe1(struct net_device *dev, int ioaddr)
return hp100_probe1(dev, ioaddr, HP100_BUS_ISA, NULL); return hp100_probe1(dev, ioaddr, HP100_BUS_ISA, NULL);
err: err:
return -ENODEV; return -ENODEV;
} }
/* /*
* Probe for ISA board. * Probe for ISA board.
...@@ -871,10 +869,8 @@ static void hp100_hwinit(struct net_device *dev) ...@@ -871,10 +869,8 @@ static void hp100_hwinit(struct net_device *dev)
/* Finally try to log in the Hub if there may be a VG connection. */ /* Finally try to log in the Hub if there may be a VG connection. */
if ((lp->lan_type == HP100_LAN_100) || (lp->lan_type == HP100_LAN_ERR)) if ((lp->lan_type == HP100_LAN_100) || (lp->lan_type == HP100_LAN_ERR))
hp100_login_to_vg_hub(dev, 0); /* relogin */ hp100_login_to_vg_hub(dev, 0); /* relogin */
} }
/* /*
* mmuinit - Reinitialise Cascade MMU and MAC settings. * mmuinit - Reinitialise Cascade MMU and MAC settings.
* Note: Must already be in reset and leaves card in reset. * Note: Must already be in reset and leaves card in reset.
...@@ -1127,7 +1123,6 @@ static int hp100_close(struct net_device *dev) ...@@ -1127,7 +1123,6 @@ static int hp100_close(struct net_device *dev)
return 0; return 0;
} }
/* /*
* Configure the PDL Rx rings and LAN * Configure the PDL Rx rings and LAN
*/ */
...@@ -1178,7 +1173,6 @@ static void hp100_init_pdls(struct net_device *dev) ...@@ -1178,7 +1173,6 @@ static void hp100_init_pdls(struct net_device *dev)
} }
} }
/* These functions "format" the entries in the pdl structure */ /* These functions "format" the entries in the pdl structure */
/* They return how much memory the fragments need. */ /* They return how much memory the fragments need. */
static int hp100_init_rxpdl(struct net_device *dev, static int hp100_init_rxpdl(struct net_device *dev,
...@@ -1209,7 +1203,6 @@ static int hp100_init_rxpdl(struct net_device *dev, ...@@ -1209,7 +1203,6 @@ static int hp100_init_rxpdl(struct net_device *dev,
return roundup(MAX_RX_FRAG * 2 + 2, 4); return roundup(MAX_RX_FRAG * 2 + 2, 4);
} }
static int hp100_init_txpdl(struct net_device *dev, static int hp100_init_txpdl(struct net_device *dev,
register hp100_ring_t * ringptr, register hp100_ring_t * ringptr,
register u32 * pdlptr) register u32 * pdlptr)
...@@ -1568,7 +1561,6 @@ static netdev_tx_t hp100_start_xmit_bm(struct sk_buff *skb, ...@@ -1568,7 +1561,6 @@ static netdev_tx_t hp100_start_xmit_bm(struct sk_buff *skb,
return NETDEV_TX_OK; return NETDEV_TX_OK;
} }
/* clean_txring checks if packets have been sent by the card by reading /* clean_txring checks if packets have been sent by the card by reading
* the TX_PDL register from the performance page and comparing it to the * the TX_PDL register from the performance page and comparing it to the
* number of committed packets. It then frees the skb's of the packets that * number of committed packets. It then frees the skb's of the packets that
...@@ -1732,10 +1724,8 @@ static netdev_tx_t hp100_start_xmit(struct sk_buff *skb, ...@@ -1732,10 +1724,8 @@ static netdev_tx_t hp100_start_xmit(struct sk_buff *skb,
drop: drop:
dev_kfree_skb(skb); dev_kfree_skb(skb);
return NETDEV_TX_OK; return NETDEV_TX_OK;
} }
/* /*
* Receive Function (Non-Busmaster mode) * Receive Function (Non-Busmaster mode)
* Called when an "Receive Packet" interrupt occurs, i.e. the receive * Called when an "Receive Packet" interrupt occurs, i.e. the receive
...@@ -1946,7 +1936,6 @@ static void hp100_rx_bm(struct net_device *dev) ...@@ -1946,7 +1936,6 @@ static void hp100_rx_bm(struct net_device *dev)
hp100_outl((u32) lp->rxrtail->pdl_paddr, RX_PDA); hp100_outl((u32) lp->rxrtail->pdl_paddr, RX_PDA);
lp->rxrtail = lp->rxrtail->next; lp->rxrtail = lp->rxrtail->next;
} }
} }
} }
...@@ -2030,7 +2019,6 @@ static void hp100_clear_stats(struct hp100_private *lp, int ioaddr) ...@@ -2030,7 +2019,6 @@ static void hp100_clear_stats(struct hp100_private *lp, int ioaddr)
spin_unlock_irqrestore(&lp->lock, flags); spin_unlock_irqrestore(&lp->lock, flags);
} }
/* /*
* multicast setup * multicast setup
*/ */
...@@ -2797,7 +2785,6 @@ void hp100_RegisterDump(struct net_device *dev) ...@@ -2797,7 +2785,6 @@ void hp100_RegisterDump(struct net_device *dev)
} }
#endif #endif
static void cleanup_dev(struct net_device *d) static void cleanup_dev(struct net_device *d)
{ {
struct hp100_private *p = netdev_priv(d); struct hp100_private *p = netdev_priv(d);
...@@ -2918,7 +2905,6 @@ static void hp100_pci_remove(struct pci_dev *pdev) ...@@ -2918,7 +2905,6 @@ static void hp100_pci_remove(struct pci_dev *pdev)
pci_disable_device(pdev); pci_disable_device(pdev);
} }
static struct pci_driver hp100_pci_driver = { static struct pci_driver hp100_pci_driver = {
.name = "hp100", .name = "hp100",
.id_table = hp100_pci_tbl, .id_table = hp100_pci_tbl,
...@@ -3016,7 +3002,6 @@ static int __init hp100_module_init(void) ...@@ -3016,7 +3002,6 @@ static int __init hp100_module_init(void)
goto out; goto out;
} }
static void __exit hp100_module_exit(void) static void __exit hp100_module_exit(void)
{ {
hp100_isa_cleanup(); hp100_isa_cleanup();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment