From: H Hartley Sweeten Date: Fri, 6 Dec 2013 16:43:02 +0000 (-0700) Subject: staging: comedi: pcmuio: tidy up pcmuio_handle_asic_interrupt() X-Git-Tag: v3.14-rc1~150^2~515 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=741ba8cdf0e938d131b49fda37f80057286e459b;p=pandora-kernel.git staging: comedi: pcmuio: tidy up pcmuio_handle_asic_interrupt() Unfortunatly, since there could be two asics, we can't use dev->read_subdev to get the subdevice. But, the comedi_subdevice associated with the 'asic' can easily be calculated. This allows removing the for () loop that searched for the correct subdevice. Tidy up the function. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed