Re: [Qemu-devel] [PATCH 1/3] trace: Simplify find_debugfs()

2017-11-09 Thread Namhyung Kim
Hello, On Thu, Nov 9, 2017 at 7:42 PM, Stefan Hajnoczi wrote: > On Wed, Nov 08, 2017 at 12:31:34AM +0900, Namhyung Kim wrote: >> The return vale of find_debugfs() is 1 if it could find a mount point of >> debugfs. It can be saved in the while loop instead of checking it again. >> >> Signed-off-b

Re: [Qemu-devel] [PATCH 1/3] trace: Simplify find_debugfs()

2017-11-09 Thread Stefan Hajnoczi
On Wed, Nov 08, 2017 at 12:31:34AM +0900, Namhyung Kim wrote: > The return vale of find_debugfs() is 1 if it could find a mount point of > debugfs. It can be saved in the while loop instead of checking it again. > > Signed-off-by: Namhyung Kim > --- > trace/ftrace.c | 7 +++ > 1 file change

[Qemu-devel] [PATCH 1/3] trace: Simplify find_debugfs()

2017-11-07 Thread Namhyung Kim
The return vale of find_debugfs() is 1 if it could find a mount point of debugfs. It can be saved in the while loop instead of checking it again. Signed-off-by: Namhyung Kim --- trace/ftrace.c | 7 +++ 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/trace/ftrace.c b/trace/ftra