genesys: remove code which is never reached

The surrounding conditions always evaluate as FALSE because the
variables are set to different values before.
genesys: check return values