Fix clang compilation warnings about unreachable code

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