OpenPGP: cleanup pgp_get_card_features()
OpenPGP: cleanup pgp_get_card_features()

- bug fix: re-initialize index to start searching at the right place
- get rid of unnecessary variable
- add some line breaks & comemnts for easier understanding

OpenSC/OpenSC,nmav/OpenSC,gemini/OpenSC,frankmorgner/OpenSC,aobaid/OpenSC,Jakuje/OpenSC,AktivCo/OpenSC,fabled/OpenSC,mtrojnar/OpenSC,l1k/OpenSC,CardContact/OpenSC,rickyepoderi/OpenSC,AktivCo/OpenSC,mtrojnar/OpenSC,AktivCo/OpenSC,Jakuje/OpenSC,philipWendland/OpenSC,kasparsd/opensc-latvia-id,LudovicRousseau/OpenSC,OpenSC/OpenSC,jpki/OpenSC,germanblanco/OpenSC,mtrojnar/OpenSC,hongquan/OpenSC-main,viktorTarasov/OpenSC-SM,kasparsd/opensc-latvia-id,Jakuje/OpenSC,gemini/OpenSC,CardContact/OpenSC,hhonkanen/OpenSC,philipWendland/OpenSC,gemini/OpenSC,frankmorgner/OpenSC,hongquan/OpenSC-main,jpki/OpenSC,fabled/OpenSC,germanblanco/OpenSC,aobaid/OpenSC,metsma/OpenSC,nmav/OpenSC,aobaid/OpenSC,fabled/OpenSC,rickyepoderi/OpenSC,hhonkanen/OpenSC,mouse07410/OpenSC,l1k/OpenSC,jpki/OpenSC,LudovicRousseau/OpenSC,viktorTarasov/OpenSC-SM,mouse07410/OpenSC,Jakuje/OpenSC,kasparsd/opensc-latvia-id,philipWendland/OpenSC,metsma/OpenSC,OpenSC/OpenSC,metsma/OpenSC,nmav/OpenSC,CardContact/OpenSC,mouse07410/OpenSC,dengert/OpenSC,aobaid/OpenSC,fabled/OpenSC,l1k/OpenSC,martinpaljak/OpenSC,rickyepoderi/OpenSC,dengert/OpenSC,kasparsd/opensc-latvia-id,germanblanco/OpenSC,frankmorgner/OpenSC,viktorTarasov/OpenSC-SM,frankmorgner/OpenSC,martinpaljak/OpenSC,dengert/OpenSC,LudovicRousseau/OpenSC,martinpaljak/OpenSC,hhonkanen/OpenSC,hongquan/OpenSC-main