From: Thomas Gleixner Date: Fri, 25 May 2012 22:08:57 +0000 (+0000) Subject: timers: Create detach_if_pending() and use it X-Git-Tag: v3.6-rc1~165^2~13 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ec44bc7acc3687ba6ae8154b4b5a845b70279237;p=pandora-kernel.git timers: Create detach_if_pending() and use it Most callers of detach_timer() have the same pattern around them. Check whether the timer is pending and eventually updating base->next_timer. Create detach_if_pending() and replace the duplicated code. Signed-off-by: Thomas Gleixner Cc: Peter Zijlstra Cc: Gilad Ben-Yossef Cc: Frederic Weisbecker Link: http://lkml.kernel.org/r/20120525214819.131246037@linutronix.de --- Reading git-diff-tree failed