From: Vaishali Thakkar Date: Fri, 6 Mar 2015 10:53:51 +0000 (+0530) Subject: Staging: rtl8712: Eliminate use of _cancel_timer X-Git-Tag: omap-for-v4.1/fixes-rc1~165^2~138^2~420 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=382d020f4459cd77237c5463098935fd64afdab3;p=pandora-kernel.git Staging: rtl8712: Eliminate use of _cancel_timer Use timer API function del_timer_sync instead of driver specific function _cancel_timer as besides deactivating a timer, it also ensures that the timer is stopped on all CPUs before the driver exists. Also, variables timer_cancelled and bool are removed as they are no longer needed. @a@ expression x; identifier y; @@ - _cancel_timer (&x, &y); + del_timer_sync (&x); @@type T; identifier a.y;@@ - T y; ...when != y Signed-off-by: Vaishali Thakkar Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed