From: H Hartley Sweeten Date: Tue, 29 Apr 2014 18:08:38 +0000 (-0700) Subject: staging: comedi: adv_pci1710: remove local var in pci171x_ai_cmd() X-Git-Tag: omap-for-v3.16/fixes-against-rc1~39^2~36^2~1081 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=335733438f703a4a54478360759b75ff1d24ebda;p=pandora-kernel.git staging: comedi: adv_pci1710: remove local var in pci171x_ai_cmd() The local variable 'mode' is not necessary. We can determine the mode by checking the cmd->convert_src and cmd->start_src. Do this instead to clarify the code. Signed-off-by: H Hartley Sweeten Reviewed-by: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed