[PATCH v1 18/21] j1939: j1939_netdev_notify: remove netspace left over code

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



this code is not really working for now, so remove it.

Signed-off-by: Oleksij Rempel <o.rempel@xxxxxxxxxxxxxx>
---
 net/can/j1939/main.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/net/can/j1939/main.c b/net/can/j1939/main.c
index 3af412e407f5..980f65ef19a7 100644
--- a/net/can/j1939/main.c
+++ b/net/can/j1939/main.c
@@ -345,9 +345,6 @@ static int j1939_netdev_notify(struct notifier_block *nb,
 	if (!priv)
 		goto notify_done;
 
-	if (!net_eq(dev_net(ndev), &init_net))
-		goto notify_put;
-
 	if (ndev->type != ARPHRD_CAN)
 		goto notify_put;
 
-- 
2.20.1




[Index of Archives]     [Automotive Discussions]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]     [CAN Bus]

  Powered by Linux