btrfs-progs: cleanup duplicate assignment of variable leaf for btrfs-image
authorGui Hecheng <guihc.fnst@cn.fujitsu.com>
Thu, 19 Jun 2014 01:46:00 +0000 (09:46 +0800)
committerDavid Sterba <dsterba@suse.cz>
Fri, 22 Aug 2014 12:43:10 +0000 (14:43 +0200)
commit16668ba6da72b9e90bdd0c89188db7137a861657
tree8ac191e5c984da54735e2e62f7599ad5b1af9ebc
parentc24c92f4aef407f6d2cb8fb6422e0f1f77ef8880
btrfs-progs: cleanup duplicate assignment of variable leaf for btrfs-image

The value of variable leaf in while loop don't have to be set
for every round. Just move it outside.

Signed-off-by: Gui Hecheng <guihc.fnst@cn.fujitsu.com>
Signed-off-by: David Sterba <dsterba@suse.cz>
btrfs-image.c