]> git.baikalelectronics.ru Git - kernel.git/commit
perf tests: Replace assignment with comparison on assert check
authorColin Ian King <colin.king@canonical.com>
Sat, 23 Apr 2016 13:45:54 +0000 (14:45 +0100)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 25 Apr 2016 23:24:26 +0000 (20:24 -0300)
commit6a39b61fd3b77a6a3ff91bccfa08c53e8a9dadaa
tree773b5cef7313bd0f3f0c47bbf034b3b28c5ac979
parent2ab7a69dc0360acc29e9cbd4e38e6445465944a3
perf tests: Replace assignment with comparison on assert check

The current assert check is checking an assignment, which will always be
true.  Instead, the assert should be checking if scale is equal to 0.122

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Reviewed-by: Masami Hiramatsu <mhiramat@kernel.org>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/r/1461419154-16918-1-git-send-email-colin.king@canonical.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/tests/event_update.c