channels/smartcard: cleanup return codes