Fix code execution path warning and coding style

Signed-off-by: Marc Delisle <marc@infomarc.info>