Skip to content

Commit

Permalink
ARM: 7664/1: perf: remove erroneous semicolon from event initialisation
Browse files Browse the repository at this point in the history
Commit 9dcbf46 ("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: Dirk Behme <dirk.behme@gmail.com>
Signed-off-by: Chen Gang <gang.chen@asianux.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
  • Loading branch information
Chen Gang authored and Russell King committed Mar 3, 2013
1 parent f2fe09b commit e595ede
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/arm/kernel/perf_event.c
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,7 @@ __hw_perf_event_init(struct perf_event *event)
}

if (event->group_leader != event) {
if (validate_group(event) != 0);
if (validate_group(event) != 0)
return -EINVAL;
}

Expand Down

0 comments on commit e595ede

Please sign in to comment.