From: Ian Abbott Date: Fri, 23 Aug 2013 13:45:06 +0000 (+0100) Subject: staging: comedi: comedi_bond: just check devprivs->devs once on detach X-Git-Tag: v3.12-rc1~183^2~73 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7b8cbe92be6dc2665e3247f4b136199055972b5a;p=pandora-kernel.git staging: comedi: comedi_bond: just check devprivs->devs once on detach The `while` loop in `bonding_detach()` doesn't need to check `devpriv->devs` each time round the loop. Move the test outside the loop. The enclosing `if (devpriv)` can be changed to `if (devpriv && devpriv->devs)` as everything in this `if` statement is associated with `devpriv->devs` anyway. Signed-off-by: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed