btrfs-progs: impossible BUG_ON meant to test empty
authorZach Brown <zab@redhat.com>
Tue, 22 Jan 2013 21:58:20 +0000 (13:58 -0800)
committerZach Brown <zab@redhat.com>
Wed, 6 Feb 2013 00:09:39 +0000 (16:09 -0800)
commitfd732dd81a698c90387a3611134e5fffec07411b
treede1808c71a2d4b79c50b5f896a2592ab02365c97
parent7c9f323a7c9c7a0d7b516ed9974308bde4017ae2
btrfs-progs: impossible BUG_ON meant to test empty

old_left_nritems is unsigned so BUG_ON(old_left_nritems < 0) is
impossible.  Presumably the BUG_ON() meant to test that it wasn't 0 so
that btrfs_item_offset_nr() doesn't get a nr of -1.

Signed-off-by: Zach Brown <zab@redhat.com>
ctree.c