From: H Hartley Sweeten Date: Thu, 23 May 2013 19:42:01 +0000 (-0700) Subject: staging: comedi: usbduxsigma: cleanup the (*cancel) functions X-Git-Tag: omap-for-v3.11/fixes-for-merge-window~76^2~480 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=eac456c82376f6592b2fb8dd6f76d230bf24476e;p=pandora-kernel.git staging: comedi: usbduxsigma: cleanup the (*cancel) functions The (*cancel) functions can only be called by the comedi core it the (*auto_attach) completed successfully. That function sets the comedi_device 'private' variable before initializing the callbacks so the sanity checks are unnecessary. Remove them. Also, rename the 'this_usbduxsub' local variable to 'devpriv' as this is more common in comedi drivers. Remove the unnecessary comments. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed