]> Git Repo - qemu.git/commit - block/qcow2-refcount.c
qcow2: Nicer variable names in qcow2_update_snapshot_refcount()
authorEric Blake <[email protected]>
Sun, 7 May 2017 00:05:41 +0000 (19:05 -0500)
committerMax Reitz <[email protected]>
Thu, 11 May 2017 12:28:06 +0000 (14:28 +0200)
commitb32cbae11107e9e172e5c58425a2a8362e7382ed
treecdcc5778dc3c6122a381bd6006e81cf8868c076c
parent40812d937392fddc11f72a668aef251039cc15ce
qcow2: Nicer variable names in qcow2_update_snapshot_refcount()

In order to keep checkpatch happy when the next patch changes
indentation, we first have to shorten some long lines.  The easiest
approach is to use a new variable in place of
'offset & L2E_OFFSET_MASK', except that 'offset' is the best name
for that variable.  Change '[old_]offset' to '[old_]entry' to
make room.

While touching things, also fix checkpatch warnings about unusual
'for' statements.

Suggested by Max Reitz <[email protected]>
Signed-off-by: Eric Blake <[email protected]>
Message-id: 20170507000552[email protected]
Reviewed-by: Max Reitz <[email protected]>
Signed-off-by: Max Reitz <[email protected]>
block/qcow2-refcount.c
This page took 0.020453 seconds and 4 git commands to generate.