From: H Hartley Sweeten Date: Tue, 26 Jun 2012 00:17:52 +0000 (-0700) Subject: staging: comedi: cb_das16_cs: cleanup das16cs_ai_rinsn() X-Git-Tag: v3.6-rc1~100^2~520 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e05b98b6425d46e7a0f77d16499407f6df35427f;p=pandora-kernel.git staging: comedi: cb_das16_cs: cleanup das16cs_ai_rinsn() Cleanup to analog input read function. 1) Initialize the chan, range, and aref locale variables when they are declared. 2) Remove need for the static local variable. 3) Remove the unnecessary cast of inw()'s return value. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Frank Mori Hess Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed