Re: [PATCH] perf thread: cleanup with list_first_entry_or_null()

2016-11-05 Thread Arnaldo Carvalho de Melo
Em Sun, Nov 06, 2016 at 12:00:22PM +0900, Masahiro Yamada escreveu: > Hi maintainers, > > Does this patch look good? >From a quick look it seems ok, I'll try and process it when back home. - Arnaldo > 2016-09-13 3:29 GMT+09:00 Masahiro Yamada : > > The combo of list_empty() check and return li

Re: [PATCH] perf thread: cleanup with list_first_entry_or_null()

2016-11-05 Thread Masahiro Yamada
Hi maintainers, Does this patch look good? 2016-09-13 3:29 GMT+09:00 Masahiro Yamada : > The combo of list_empty() check and return list_first_entry() > can be replaced with list_first_entry_or_null(). > > Signed-off-by: Masahiro Yamada > --- > > tools/perf/util/thread.c | 5 + > 1 file cha

[PATCH] perf thread: cleanup with list_first_entry_or_null()

2016-09-12 Thread Masahiro Yamada
The combo of list_empty() check and return list_first_entry() can be replaced with list_first_entry_or_null(). Signed-off-by: Masahiro Yamada --- tools/perf/util/thread.c | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/tools/perf/util/thread.c b/tools/perf/util/thread.c