From: H Hartley Sweeten Date: Thu, 19 Dec 2013 23:32:07 +0000 (-0700) Subject: staging: comedi: ni_660x: remove dma_selection_counter() X-Git-Tag: v3.14-rc1~150^2~170 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d783a20e8f2ada1b0b443ddf09e7e700d20b18dc;p=pandora-kernel.git staging: comedi: ni_660x: remove dma_selection_counter() The counter->chip_index will always be < counters_per_chip due to the initialization of the subdevices during the attach of the board. The dma_selection_counter() helper just does a BUG_ON() check before returning the original value. Just use the original value directly in the caller and remove the helper function. Signed-off-by: H Hartley Sweeten Reviewed-by: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed