[LDBM] remove dead code

if (!parent) is already checked few lines above

Signed-off-by: Jean-Christophe DUBOIS <jcd@tribudubois.net>