Em Mon, Sep 14, 2015 at 05:53:03PM -0300, Arnaldo Carvalho de Melo escreveu:
> Ok continuing, found two more problems in this patch, fixed as follows,
> merging.
 
> - Arnaldo
 
> +++ b/tools/perf/tests/mmap-basic.c
> @@ -65,7 +65,7 @@ int test__basic_mmap(void)
>  
>               snprintf(name, sizeof(name), "sys_enter_%s", syscall_names[i]);
>               evsels[i] = perf_evsel__newtp("syscalls", name);
> -             if (evsels[i] == NULL) {
> +             if (IS_ERR(evsels[i]) == NULL) {

modulo the == NULL ;-)

>                       pr_debug("perf_evsel__new\n");
>                       goto out_delete_evlist;
>               }
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Reply via email to