From: Thomas Gleixner Date: Fri, 11 Apr 2014 08:13:13 +0000 (+0000) Subject: can: c_can: Fix berr reporting X-Git-Tag: omap-for-v3.16/fixes-against-rc1~214^2~39^2~20 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=097aec19689d8f2f76fd0c1becacf32801ae94c7;p=pandora-kernel.git 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 Tested-by: Alexander Stein Signed-off-by: Marc Kleine-Budde --- Reading git-diff-tree failed