lib/dentry: remove redundant i++ statement

Change-Id: Id1f8665235672f1085f12920fa9693fd3f086b57