* [PATCH] staging: net: Fixing style problems suggested by checkpatch
@ 2021-12-19 14:32 Rohit Chavan
0 siblings, 0 replies; only message in thread
From: Rohit Chavan @ 2021-12-19 14:32 UTC (permalink / raw)
To: davem, kuba; +Cc: netdev, linux-kernel, Rohit Chavan
Signed-off-by: Rohit Chavan <roheetchavan@gmail.com>
---
drivers/net/macvtap.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers/net/macvtap.c b/drivers/net/macvtap.c
index 6b12902a803f..4e39792703a5 100644
--- a/drivers/net/macvtap.c
+++ b/drivers/net/macvtap.c
@@ -30,14 +30,13 @@ struct macvtap_dev {
struct tap_dev tap;
};
-/*
- * Variables for dealing with macvtaps device numbers.
- */
+/* Variables for dealing with macvtaps device numbers. */
static dev_t macvtap_major;
static const void *macvtap_net_namespace(struct device *d)
{
struct net_device *dev = to_net_dev(d->parent);
+
return dev_net(dev);
}
@@ -47,6 +46,7 @@ static struct class macvtap_class = {
.ns_type = &net_ns_type_operations,
.namespace = macvtap_net_namespace,
};
+
static struct cdev macvtap_cdev;
#define TUN_OFFLOADS (NETIF_F_HW_CSUM | NETIF_F_TSO_ECN | NETIF_F_TSO | \
--
2.32.0
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2021-12-19 14:33 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-12-19 14:32 [PATCH] staging: net: Fixing style problems suggested by checkpatch Rohit Chavan
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).