fix the clang compiler warnings ('will never be executed')

Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>