diff mbox series

[iproute2-next,2/5] ipnetns: fix misleading comment about 'ip monitor nsid'

Message ID c20c62df6c7c66e9cffd4d493752fcd8876fc92f.1573231189.git.gnault@redhat.com
State Accepted
Delegated to: David Ahern
Headers show
Series ipnetns: cleanup and harden processing of netns ids | expand

Commit Message

Guillaume Nault Nov. 8, 2019, 5 p.m. UTC
'ip monitor nsid' doesn't call print_nsid().

Signed-off-by: Guillaume Nault <gnault@redhat.com>
---
 ip/ipnetns.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/ip/ipnetns.c b/ip/ipnetns.c
index 0a7912df..b02e0a8a 100644
--- a/ip/ipnetns.c
+++ b/ip/ipnetns.c
@@ -340,7 +340,7 @@  int print_nsid(struct nlmsghdr *n, void *arg)
 		netns_map_del(c);
 	}
 
-	/* During 'ip monitor nsid', no chance to have new nsid in cache. */
+	/* nsid might not be in cache */
 	if (c == NULL && n->nlmsg_type == RTM_NEWNSID)
 		if (netns_get_name(nsid, name) == 0) {
 			print_string(PRINT_ANY, "name",