From: Mark Einon Date: Sun, 14 Sep 2014 15:58:59 +0000 (+0100) Subject: staging: et131x: Simplify unlocking tcb_send_qlock in et131x_tx_timeout() X-Git-Tag: fixes-for-v3.18-merge-window~15^2~399 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=82d95799d89b0cb3ad4c15c60e2c19862cb3a459;p=pandora-kernel.git staging: et131x: Simplify unlocking tcb_send_qlock in et131x_tx_timeout() The tcb_send_qlock spinlock is unlocked in all three paths at the end of et131x_tx_timeout(). We can call it once before entering any of the paths, saving ourselves a few lines of code. This change puts tcb->count++ outside of the lock, but et131x_tx_timeout() itself is protected by the tx_global_lock, so this shouldn't matter. Signed-off-by: Mark Einon Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed