]> git.proxmox.com Git - mirror_qemu.git/commit - trace/ftrace.c
trace: Simplify find_debugfs()
authorNamhyung Kim <namhyung@gmail.com>
Tue, 7 Nov 2017 15:31:34 +0000 (00:31 +0900)
committerStefan Hajnoczi <stefanha@redhat.com>
Mon, 18 Dec 2017 14:37:36 +0000 (14:37 +0000)
commit5070570c9089b905dd9efae30ee4318033c6ccd6
treeb6fc3720ab92442a4fd6fb15fb1998d179599771
parent411ad78115ebeb3411cf4b7622784b93dfabe259
trace: Simplify find_debugfs()

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 <namhyung@gmail.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
trace/ftrace.c