From: H Hartley Sweeten Date: Thu, 23 May 2013 19:41:27 +0000 (-0700) Subject: staging: comedi: usbduxsigma: remove check of 'probed' in (*cancel) functions X-Git-Tag: omap-for-v3.11/fixes-for-merge-window~76^2~481 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=00fbd2851428f2fa8cf0aaff6832f21fe4856c9c;p=pandora-kernel.git staging: comedi: usbduxsigma: remove check of 'probed' in (*cancel) functions The comedi_device private data variable 'probed' is set after the usb_driver has completed its (*probe) before calling comedi_usb_auto_config(). That function calls the comedi_driver (*auto_attach) which will set the comedi_device 'private' variable and initialize the subdevices. The subdevice (*cancel) functions can only be called after the (*auto_attach) has completed successfully so the sanity checks of 'probed' are unnecessary. Remove them. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed