Skip to contentSkip to conversation

net: tap: trivial fixes

PATCH Applied Antony Pavlov 2 participants 4 messages Dec 3, 2015 – Dec 4, 2015

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

cover net: tap: trivial fixes

Antony Pavlov (2):
net: tap: make locally used functions static
net: tap: fix whitespaces

 drivers/net/tap.c | 17 +++++++++--------
 1 file changed, 9 insertions(+), 8 deletions(-)
Signature · 7 lines
2.6.2


_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
#1 lore raw

PATCH 1/2 net: tap: make locally used functions static

---
 drivers/net/tap.c | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)
drivers/net/tap.c +5 -5
index ca53f12..dfa9bc2 100644
@@ -29,7 +29,7 @@ struct tap_priv {
 	char *name;
 };
 
-int tap_eth_send (struct eth_device *edev, void *packet, int length)
+static int tap_eth_send(struct eth_device *edev, void *packet, int length)
 {
 	struct tap_priv *priv = edev->priv;
 
@@ -37,7 +37,7 @@ int tap_eth_send (struct eth_device *edev, void *packet, int length)
 	return 0;
 }
 
-int tap_eth_rx (struct eth_device *edev)
+static int tap_eth_rx(struct eth_device *edev)
 {
 	struct tap_priv *priv = edev->priv;
 	int length;
@@ -50,12 +50,12 @@ int tap_eth_rx (struct eth_device *edev)
 	return 0;
 }
 
-int tap_eth_open(struct eth_device *edev)
+static int tap_eth_open(struct eth_device *edev)
 {
 	return 0;
 }
 
-void tap_eth_halt (struct eth_device *edev)
+static void tap_eth_halt(struct eth_device *edev)
 {
 	/* nothing to do here */
 }
@@ -70,7 +70,7 @@ static int tap_set_ethaddr(struct eth_device *edev, const unsigned char *adr)
 	return 0;
 }
 
-int tap_probe(struct device_d *dev)
+static int tap_probe(struct device_d *dev)
 {
 	struct eth_device *edev;
 	struct tap_priv *priv;
Signature · 7 lines
2.6.2


_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
#2 lore raw

PATCH 2/2 net: tap: fix whitespaces

In reply to Antony Pavlov
---
 drivers/net/tap.c | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)
drivers/net/tap.c +4 -3
index dfa9bc2..4277956 100644
@@ -99,14 +99,15 @@ static int tap_probe(struct device_d *dev)
 
 	eth_register(edev);
 
-        return 0;
+	return 0;
+
 out:
 	free(priv);
 	return ret;
 }
 
 static struct driver_d tap_driver = {
-        .name  = "tap",
-        .probe = tap_probe,
+	.name  = "tap",
+	.probe = tap_probe,
 };
 device_platform_driver(tap_driver);
Signature · 7 lines
2.6.2


_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
Applied
#3 lore raw
In reply to Antony Pavlov
Quoted 6 lines · Antony Pavlov

Antony Pavlov (2):
net: tap: make locally used functions static
net: tap: fix whitespaces

 drivers/net/tap.c | 17 +++++++++--------
 1 file changed, 9 insertions(+), 8 deletions(-)

Applied, thanks

Sascha

Signature · 9 lines
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox