Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

perf tools: Remove unnecessary parentheses

The hashmap API used to require parentheses for the hashmap argument if
it's not a pointer type. It's now fixed so let's drop the parentheses.

Link: https://lore.kernel.org/r/20241009202009.884884-2-namhyung@kernel.org
Signed-off-by: Namhyung Kim <namhyung@kernel.org>

+2 -2
+2 -2
tools/perf/util/threads.c
··· 141 141 142 142 down_write(&table->lock); 143 143 __threads_table_entry__set_last_match(table, NULL); 144 - hashmap__for_each_entry_safe((&table->shard), cur, tmp, bkt) { 144 + hashmap__for_each_entry_safe(&table->shard, cur, tmp, bkt) { 145 145 struct thread *old_value; 146 146 147 147 hashmap__delete(&table->shard, cur->key, /*old_key=*/NULL, &old_value); ··· 175 175 size_t bkt; 176 176 177 177 down_read(&table->lock); 178 - hashmap__for_each_entry((&table->shard), cur, bkt) { 178 + hashmap__for_each_entry(&table->shard, cur, bkt) { 179 179 int rc = fn((struct thread *)cur->pvalue, data); 180 180 181 181 if (rc != 0) {