summaryrefslogtreecommitdiff
path: root/drivers/power
diff options
context:
space:
mode:
authorAlex Elder <elder@dreamhost.com>2012-02-07 18:03:36 (GMT)
committerAlex Elder <elder@dreamhost.com>2012-03-22 15:47:50 (GMT)
commit00f1f36ffa29a6b8e0529770bce2a44585ab3af0 (patch)
tree573bed76392a12b4568adcf704ec7b77e108be08 /drivers/power
parentfed4c143ba8f08c8bddfdc7c69738e691a06d565 (diff)
downloadlinux-fsl-qoriq-00f1f36ffa29a6b8e0529770bce2a44585ab3af0.tar.xz
rbd: do some refactoring
A few blocks of code are rearranged a bit here: - In rbd_header_from_disk(): - Don't bother computing snap_count until we're sure the on-disk header starts with a good signature. - Move a few independent lines of code so they are *after* a check for a failed memory allocation. - Get rid of unnecessary local variable "ret". - Make a few other changes in rbd_read_header(), similar to the above--just moving things around a bit while preserving the functionality. - In rbd_rq_fn(), just assign rq in the while loop's controlling expression rather than duplicating it before and at the end of the loop body. This allows the use of "continue" rather than "goto next" in a number of spots. - Rearrange the logic in snap_by_name(). End result is the same. Signed-off-by: Alex Elder <elder@dreamhost.com>
Diffstat (limited to 'drivers/power')
0 files changed, 0 insertions, 0 deletions