userns: Remove redundant assignment to variable ret
PATCH 1/1 userns: Remove redundant assignment to variable ret
After commit d2f007dbe7e4 ("userns: also map extents in the reverse map to kernel IDs"), the assignment to ret is redundant. So remove it.
Signed-off-by Jing Xiangfeng <[email protected]>
--- kernel/user_namespace.c | 1 - 1 file changed, 1 deletion(-)
kernel/user_namespace.c +0 -1
@@ -968,7 +968,6 @@ static ssize_t map_write(struct file *file, const char __user *buf,if (!new_idmap_permitted (file, ns, cap_setid, &new_map)) goto out; - ret = -EPERM ;/* Map the lower ids from the parent user namespace to the * kernel global id space. */
Signature · 1 line
2.17.1