From: H Hartley Sweeten Date: Tue, 13 Nov 2012 20:46:19 +0000 (-0700) Subject: staging: comedi: addi_apci_1516: cleanup apci1516_detach() X-Git-Tag: omap-for-v3.8/fixes-for-merge-window-v4-signed~84^2~400 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=87722a7ab74f2f9d89dcd45955a1c1d304e5e1c6;p=pandora-kernel.git staging: comedi: addi_apci_1516: cleanup apci1516_detach() This driver uses the comedi auto_config mechanism to attach to the comedi subsystem. The dev->hw_dev is set by the core so comedi_to_pci_dev() will always return a valid pcidev. Remove the unnecessary test. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed