提交 e595ede6 编写于 作者: C Chen Gang 提交者: Russell King

ARM: 7664/1: perf: remove erroneous semicolon from event initialisation

Commit 9dcbf466 ("ARM: perf: simplify __hw_perf_event_init err
handling") tidied up the error handling code for perf event
initialisation on ARM, but a copy-and-paste error left a dangling
semicolon at the end of an if statement.

This patch removes the broken semicolon, restoring the old group
validation semantics.

Cc: Mark Rutland <mark.rutland@arm.com>
Acked-by: NDirk Behme <dirk.behme@gmail.com>
Signed-off-by: NChen Gang <gang.chen@asianux.com>
Signed-off-by: NWill Deacon <will.deacon@arm.com>
Signed-off-by: NRussell King <rmk+kernel@arm.linux.org.uk>
上级 f2fe09b0
...@@ -400,7 +400,7 @@ __hw_perf_event_init(struct perf_event *event) ...@@ -400,7 +400,7 @@ __hw_perf_event_init(struct perf_event *event)
} }
if (event->group_leader != event) { if (event->group_leader != event) {
if (validate_group(event) != 0); if (validate_group(event) != 0)
return -EINVAL; return -EINVAL;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册