crush: use a temporary variable to simplify crush_do_rule
authorSage Weil <sage@inktank.com>
Mon, 7 May 2012 22:35:48 +0000 (15:35 -0700)
committerSage Weil <sage@inktank.com>
Mon, 7 May 2012 22:38:51 +0000 (15:38 -0700)
Use a temporary variable here to avoid repeated array lookups and clean up
the code a bit.

This reflects ceph.git commit 6b5be27634ad307b471a5bf0db85c4f5c834885f.

Reviewed-by: Alex Elder <elder@inktank.com>
Signed-off-by: Sage Weil <sage@inktank.com>

No differences found