Re: [PATCH] nsproxy: remove judge of timens_on_fork()'s return val

2020-11-17 Thread Hui Su
On Tue, Nov 17, 2020 at 12:30:26AM -0800, Andrey Vagin wrote: > On Sun, Nov 15, 2020 at 10:36 AM Hui Su wrote: > > > > timens_on_fork() always return 0, and maybe not > > need to judge the return value in copy_namespaces(). > > Thank you for cleaning this up. I think we can go even further and >

Re: [PATCH] nsproxy: remove judge of timens_on_fork()'s return val

2020-11-17 Thread Andrey Vagin
On Sun, Nov 15, 2020 at 10:36 AM Hui Su wrote: > > timens_on_fork() always return 0, and maybe not > need to judge the return value in copy_namespaces(). Thank you for cleaning this up. I think we can go even further and change timens_on_fork to return nothing: -int timens_on_fork(struct

[PATCH] nsproxy: remove judge of timens_on_fork()'s return val

2020-11-15 Thread Hui Su
timens_on_fork() always return 0, and maybe not need to judge the return value in copy_namespaces(). Signed-off-by: Hui Su --- kernel/nsproxy.c | 7 +-- 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/kernel/nsproxy.c b/kernel/nsproxy.c index 12dd41b39a7f..e2e6c5dc433f 100644