From: H Hartley Sweeten Date: Tue, 9 Sep 2014 20:05:41 +0000 (-0700) Subject: staging: comedi: adl_pci9118: exttrg source is always EXTTRG_AI X-Git-Tag: fixes-for-v3.18-merge-window~15^2~529 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=664e244ca5d90c5f3d97a67202cbdf821a3feeb0;p=pandora-kernel.git staging: comedi: adl_pci9118: exttrg source is always EXTTRG_AI The 'source' passed to pci9118_exttrg_{add,del}() is always EXTTRG_AI. Remove the parameter and unnecessary sanity checking. Also, since there is only one vaild exttrg source, remove the unnecessary 'exttrg_users' member from the private data. The pci9118_exttrg_{add,del}() functions always succeed. For aesthetics change the return type to void. Signed-off-by: H Hartley Sweeten Reviewed-by: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed