From: H Hartley Sweeten Date: Thu, 23 May 2013 19:47:19 +0000 (-0700) Subject: staging: comedi: usbduxsigma: remove 'probed' checks in comedi functions X-Git-Tag: omap-for-v3.11/fixes-for-merge-window~76^2~469 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=990a049d8b527a3cdb90905306919fc1f38e6fd7;p=pandora-kernel.git staging: comedi: usbduxsigma: remove 'probed' checks in comedi functions The 'probed' flag in the private data is used by the usb_driver (*probe) function to find a free entry in the static usbduxsub array to use for the comedi_device private data. The (*probe) sets this flag before it hands off the probe to the comedi_driver (*auto_attach). The 'probed' flag is cleared in tidy_up() are part of the usb_driver (*disconnect), which calls the comedi_driver (*detach). The 'probed' flag will always be set if the comedi_driver (*auto_attach) completes successfully. The extra sanity checks in the comedi functions are not needed. Remove them. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed