summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorIan Abbott <abbotti@mev.co.uk>2013-08-23 17:45:06 +0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-08-26 17:41:56 +0400
commit7b8cbe92be6dc2665e3247f4b136199055972b5a (patch)
tree26dda3a752c2a0be1a19d5323bdaff2b62d02a77 /tools/perf/scripts/python
parentc2af5b9681a9d1beaf37310ee3d6a5c4860750d5 (diff)
downloadlinux-7b8cbe92be6dc2665e3247f4b136199055972b5a.tar.xz
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 <abbotti@mev.co.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions