Commit 8c9e1556 authored by Cyrill Gorcunov's avatar Cyrill Gorcunov Committed by Pavel Emelyanov

mount: Shrink lookup_nsid_by_mnt_id

Signed-off-by: 's avatarCyrill Gorcunov <gorcunov@openvz.org>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent 69657701
......@@ -2786,11 +2786,7 @@ struct ns_id *lookup_nsid_by_mnt_id(int mnt_id)
mi = mntinfo;
else
mi = lookup_mnt_id(mnt_id);
if (mi == NULL)
return NULL;
return mi->nsid;
return mi ? mi->nsid : NULL;
}
int mntns_get_root_by_mnt_id(int mnt_id)
......
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