From: H Hartley Sweeten Date: Tue, 4 Nov 2014 17:54:57 +0000 (-0700) Subject: staging: comedi: addi_apci_3120: tidy up devpriv->mode in apci3120_ai_cmd() X-Git-Tag: omap-for-v3.19/fixes-rc1~73^2~282 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=28215c69885fa86be8b5e8f7269edfb4f8c1c480;p=pandora-kernel.git staging: comedi: addi_apci_3120: tidy up devpriv->mode in apci3120_ai_cmd() There is no reason for the separate updates of the mode register in this function. Refactor the code so that the mode register is only updated at the end of the function after all the necessary bits have been set. Signed-off-by: H Hartley Sweeten Reviewed-by: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed