From: Ian Abbott Date: Fri, 25 Jul 2014 17:07:09 +0000 (+0100) Subject: staging: comedi: amplc_dio200_pci: no need to test board pointer in dio200_pci_detach() X-Git-Tag: omap-for-v3.17/fixes-against-rc2~166^2~166 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5d3d4b26f585e09159d3059a7459ab43eaed39a8;p=pandora-kernel.git staging: comedi: amplc_dio200_pci: no need to test board pointer in dio200_pci_detach() `dio200_pci_detach()` doesn't need to check if the pointer to constant board data (`thisboard`) and the pointer to private per-device data (`devpriv`) are valid before calling `amplc_dio200_common_detach()`. It has no further need to check `thisboard` so remove the variable altogether. Move the test of `devpriv` to the first point it is needs to be valid. Signed-off-by: Ian Abbott Reviewed-by: H Hartley Sweeten Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed