From: H Hartley Sweeten Date: Tue, 4 Nov 2014 17:54:52 +0000 (-0700) Subject: staging: comedi: addi_apci_3120: tidy up timer programming in apci3120_ai_cmd() X-Git-Tag: omap-for-v3.19/fixes-rc1~73^2~287 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dc0a05608d465eda9b340b958af40c1eae61af7b;p=pandora-kernel.git staging: comedi: addi_apci_3120: tidy up timer programming in apci3120_ai_cmd() Tidy up the programming of timers 0 and 1 so that only one local variable is required. Also, remove the unnecessary clear of devpriv->timer_mode. This value will get set correctly by each apci3120_timer_set_mode() call. It's not necessary to clear it first. Signed-off-by: H Hartley Sweeten Reviewed-by: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed