diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2014-04-11 08:13:13 +0000 |
---|---|---|
committer | Marc Kleine-Budde <mkl@pengutronix.de> | 2014-04-24 22:08:56 +0200 |
commit | 097aec19689d8f2f76fd0c1becacf32801ae94c7 (patch) | |
tree | 3d42c12965531640ec9d2a6e70e17a10d5a583dc /tools/perf/scripts/python/sctop.py | |
parent | f058d548e8071a1d148d6ebd94888d011c3ca71e (diff) |
can: c_can: Fix berr reporting
Reading the LEC type with
return (mode & ENABLED) && (status & LEC_MASK);
is not guaranteed to return (status & LEC_MASK) if the enabled bit in
mode is set. It's guaranteed to return 0 or !=0.
Remove the inline function and call unconditionally into the
berr_handling code and return early when the reporting is disabled.
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Tested-by: Alexander Stein <alexander.stein@systec-electronic.com>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Diffstat (limited to 'tools/perf/scripts/python/sctop.py')
0 files changed, 0 insertions, 0 deletions