Perf: fix build breakage
[firefly-linux-kernel-4.4.55.git] / tools / perf / util / hist.c
index d25fded72a11209957833aef9df71c780204e481..fb695991935bfdadf2b734e6440c3739043f5dfc 100644 (file)
@@ -165,8 +165,8 @@ struct hist_entry *__hists__add_entry(struct hists *self,
                         * mis-adjust symbol addresses when computing
                         * the history counter to increment.
                         */
-                       if (he->ms.map != entry->ms.map) {
-                               he->ms.map = entry->ms.map;
+                       if (he->ms.map != entry.ms.map) {
+                               he->ms.map = entry.ms.map;
                                if (he->ms.map)
                                        he->ms.map->referenced = true;
                        }