aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorKishore KP <[email protected]>2017-12-24 19:33:54 +0530
committerGreg Kroah-Hartman <[email protected]>2018-01-08 16:41:37 +0100
commitafe65e430d1fdcffa3843c499b96e332d619cd2c (patch)
tree29e89d92cbf3b3ffabc7d7867a40128d109326d2 /tools/perf/scripts/python
parent886654d7e37b64e0d15baae77823b83300d84ce9 (diff)
staging: vc04_services: Prefer WARN_ON_ONCE instead of if condition followed by BUG.
Coccinelle suggested to use BUG_ON instead of if condition followed by BUG but BUG_ON should be used in situations where integrity of the system is no longer guaranteed. In this case, as suggested by Stefan Wahren, vchiq isn't critical. Since it is not critical, BUG_ON should be avoided. Replaced if condition followed by BUG with WARN_ON_ONCE. Signed-off-by: Kishore KP <[email protected]> Signed-off-by: Suniel Mahesh <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions