From: Ian Abbott Date: Fri, 28 Jun 2013 16:09:22 +0000 (+0100) Subject: staging: comedi: ni_labpc: use labpc_have_dma_chan() X-Git-Tag: v3.12-rc1~183^2~726 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5c8a138e9d33df4960e3cb497c60723c7fbdacf9;p=pandora-kernel.git staging: comedi: ni_labpc: use labpc_have_dma_chan() Call the new static inline function `labpc_have_dma_chan()` from `labpc_ai_cmd()` to check if the ISA DMA channel has been initialized, tidying up the surrounding code and removing an `#ifdef`. If the "ni_labpc_isadma" module is not being built, `labpc_have_dma_chan()` doesn't bother checking the DMA channel and just returns `false`, allowing the compiler to optimize out a small amount of code. Signed-off-by: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed