CHROMIUM: verity: remove dead code in dm_bht_verify_path

The depth == 0 check is no longer necessary as depth can never
be zero at this point. We check depth > 0 at the top of the while
loop and only decrement depth at the bottom and before the continue.

TBR=wad (code already LGTMed and submitted to kernel.git)
TEST= Ran dm-verity.git unit tests. Ran platform_DMVerityCorruption on H/W.

Signed-off-by: Mandeep Singh Baines <>

kernel.git Review URL:

Change-Id: Ic28e1ddeefa1dbd9d0fe3f93b689bfcc4e240bc6

Review URL:
1 file changed