Arnaldo Carvalho de Melo b30a7d1fc9 perf pmu: Fix check for unset alias->unit array
The alias->unit field is an array, so to check that it is not set we
should see if it is an empty string, i.e. alias->unit[0], instead of
checking alias->unit != NULL, as this will _always_ evaluate to 'true'.

Pointed out by clang.

Acked-by: Jiri Olsa <jolsa@kernel.org>
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Wang Nan <wangnan0@huawei.com>
Link: http://lkml.kernel.org/r/20170214182435.GD4458@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
2017-02-15 10:06:20 -03:00
..
2015-05-27 12:21:43 -03:00
2016-07-18 19:42:47 -03:00
2016-07-18 19:42:47 -03:00
2016-06-28 10:54:56 -03:00
2016-07-12 15:19:47 -03:00
2016-07-12 15:19:47 -03:00
2017-02-02 11:39:09 -03:00
2015-08-21 11:34:10 -03:00
2016-10-24 11:07:40 -03:00
2016-10-24 11:07:39 -03:00
2015-05-05 18:13:22 -03:00
2015-05-05 18:13:22 -03:00
2016-07-12 15:19:55 -03:00
2016-10-19 13:18:31 -03:00
2016-10-19 13:18:31 -03:00
2016-07-12 15:19:55 -03:00
2016-10-03 11:24:13 -03:00
2017-02-08 17:31:10 -03:00
2016-08-23 15:37:33 -03:00
2016-10-03 11:24:13 -03:00
2016-03-31 10:52:24 -03:00
2016-04-28 09:58:58 -03:00
2016-03-23 12:32:31 -03:00
2015-05-29 12:43:44 -03:00