From: Thomas Gleixner Date: Tue, 18 Mar 2014 17:19:14 +0000 (+0000) Subject: can: c_can: Simplify TX interrupt cleanup X-Git-Tag: v3.15-rc1~113^2~2^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5a7513adab521909e836fa5b9aaabbf22b48859f;p=pandora-kernel.git can: c_can: Simplify TX interrupt cleanup The function loads the message object from the hardware to get the payload length. The previous patch stores that information in an array, so we can avoid the hardware access. Remove the hardware access and move the led toggle outside of the spinlocked region. Toggle the led only once when at least one packet has been received. Binary size shrinks along with the code Signed-off-by: Thomas Gleixner Signed-off-by: Marc Kleine-Budde --- Reading git-diff-tree failed