echo-sd: Simplify a logic