]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - tools/perf/util/scripting-engines/trace-event-python.c
tools perf scripting python: clang doesn't have -spec, remove it
[karo-tx-linux.git] / tools / perf / util / scripting-engines / trace-event-python.c
index 089438da1f7f76b2318dd2f5b10bc039441e2fc4..89b532c47cc47041158bc0174587597381273221 100644 (file)
@@ -368,10 +368,10 @@ static PyObject *python_process_callchain(struct perf_sample *sample,
                if (node->map) {
                        struct map *map = node->map;
                        const char *dsoname = "[unknown]";
-                       if (map && map->dso && (map->dso->name || map->dso->long_name)) {
+                       if (map && map->dso) {
                                if (symbol_conf.show_kernel_path && map->dso->long_name)
                                        dsoname = map->dso->long_name;
-                               else if (map->dso->name)
+                               else
                                        dsoname = map->dso->name;
                        }
                        pydict_set_item_string_decref(pyelem, "dso",