aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorNeilBrown <[email protected]>2017-10-23 11:53:49 +1100
committerGreg Kroah-Hartman <[email protected]>2017-11-03 15:00:34 +0100
commit4a8d3fb10dd758af27984ef92a44e619d598c3e0 (patch)
tree2ffef76b4a4c937c0128a69cdb5bf762ba06c5fd /lib
parent3ac5a675caf4dde2788a7a1ac32b95986bffe901 (diff)
staging: lustre: ldlm: remove unnecessary 'ownlocks' variable.
Now that the code has been simplified, 'ownlocks' is not necessary. The loop which sets it exits with 'lock' having the same value as 'ownlocks', or pointing to the head of the list if ownlocks is NULL. The current code then tests ownlocks and sets 'lock' to exactly the value that it currently has. So discard 'ownlocks'. Also remove unnecessary initialization of 'lock'. Signed-off-by: NeilBrown <[email protected]> Reviewed-by: Andreas Dilger <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions