From: Andri Yngvason Date: Fri, 16 Jan 2015 14:30:28 +0000 (+0000) Subject: can: move can_stats.bus_off++ from can_bus_off into can_change_state X-Git-Tag: fixes-v4.0-rc1~150^2~137^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=be38a6f9f4093b0f1fa9e7d8cb47d588bc117c21;p=pandora-kernel.git can: move can_stats.bus_off++ from can_bus_off into can_change_state In order to be able to move the stats increment from can_bus_off() into can_change_state(), the increment had to be moved back into code that was using can_bus_off() but not can_change_state(). As a side-effect, this patch fixes the following bugs: * Redundant call to can_bus_off() in c_can. * Bus-off counted twice in xilinx_can. Signed-off-by: Andri Yngvason Signed-off-by: Marc Kleine-Budde --- Reading git-diff-tree failed