From: Ian Abbott Date: Tue, 20 Aug 2013 15:55:41 +0000 (+0100) Subject: staging: comedi: pcmmio: remove unneeded checks on detach X-Git-Tag: v3.12-rc1~183^2~187 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b88e75bb6576d99e0ba4f6edc978293d1ff9c01b;p=pandora-kernel.git staging: comedi: pcmmio: remove unneeded checks on detach As pointed out by Dan carpenter for the similar pcmuio driver, there is no need to check the pointer passed to `kfree()`, so remove that check from `pcmmio_detach()`. Also, check the `devpriv` (`dev->private`) pointer once, outside the `for` loop. Signed-off-by: Ian Abbott Cc: Dan Carpenter Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed