oprofile, ARM: Rework op_create_counter()
authorRobert Richter <robert.richter@amd.com>
Wed, 29 Sep 2010 12:43:29 +0000 (14:43 +0200)
committerRobert Richter <robert.richter@amd.com>
Mon, 11 Oct 2010 17:34:03 +0000 (19:34 +0200)
commit2bcb2b641a8f1524f7a9801eb9e52a00b8f18c6e
tree1faeb9a6d2aecf54259205341c17fd9aef2bd5e6
parent9c91283a19c2d998a83f50f113f8585709c15caf
oprofile, ARM: Rework op_create_counter()

This patch simplifies op_create_counter(). Removing if/else if paths
and return code variable by direct returning from function.

Acked-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Robert Richter <robert.richter@amd.com>
drivers/oprofile/oprofile_perf.c