gpio: only call ferror in free() case as dev has already been free'd by swig code
gpio: only call ferror in free() case as dev has already been free'd by swig code

Signed-off-by: Brendan Le Foll <3e0e8c4069934e8b47d99704927a85c66c0ceb33@intel.com>

KurtE/mraa,w4ilun/mraa,sundw2014/mraa,arfoll/mraa,stefan-andritoiu/mraa-gpio-chardev,alex1818/mraa,matt-auld/mraa,pctj101/mraa,arfoll/mraa,alex1818/mraa,ProfFan/mraa,arunlee77/mraa,timrtoo/Intel,w4ilun/mraa,sundw2014/mraa,tripzero/mraa,Hbrinj/mraa,stefan-andritoiu/mraa,spitfire88/mraa,alexandru-elisei/mraa,SyrianSpock/mraa,whbruce/mraa,STANAPO/mraa,noahchense/mraa,neuroidss/mraa,yongli3/mraa,stefan-andritoiu/mraa-gpio-chardev,whbruce/mraa,neuroidss/mraa,alexandru-elisei/mraa,pctj101/mraa,tripzero/mraa,ProfFan/mraa,ncrastanaren/mraa,arfoll/mraa,jontrulson/mraa,stefan-andritoiu/mraa,Hbrinj/mraa,Propanu/mraa,allela-roy/mraa,STANAPO/mraa,noahchense/mraa,timrtoo/Intel,damcclos/mraa,alext-mkrs/mraa,neuberfran/mraa,SyrianSpock/mraa,g-vidal/mraa,sundw2014/mraa,STANAPO/mraa,mircea/mraa,Hbrinj/mraa,Meirtz/mraa,whbruce/mraa,jontrulson/mraa,petreeftime/mraa,ncrastanaren/mraa,yongli3/mraa,andreivasiliu2211/mraa,sergev/mraa,g-vidal/mraa,sergev/mraa,Jon-ICS/mraa,arunlee77/mraa,yangjae/mraa,noahchense/mraa,matt-auld/mraa,andreivasiliu2211/mraa,alexandru-elisei/mraa,alext-mkrs/mraa,yangjae/mraa,nioinnovation/mraa,KurtE/mraa,pctj101/mraa,allela-roy/mraa,neuberfran/mraa,stefan-andritoiu/mraa,allela-roy/mraa,smileboywtu/mraa,arunlee77/mraa,Jon-ICS/mraa,KurtE/mraa,yongli3/mraa,zBMNForks/mraa,mircea/mraa,seem-sky/mraa,Kiritoalex/mraa,ProfFan/mraa,alexandru-elisei/mraa,intel-iot-devkit/mraa,neuberfran/mraa,Propanu/mraa,tripzero/mraa,damcclos/mraa,arfoll/mraa,malikabhi05/mraa,alext-mkrs/mraa,zBMNForks/mraa,ncrastanaren/mraa,andreivasiliu2211/mraa,anonymouse64/mraa,zBMNForks/mraa,petreeftime/mraa,seem-sky/mraa,Kiritoalex/mraa,seem-sky/mraa,matt-auld/mraa,Jon-ICS/mraa,petreeftime/mraa,stefan-andritoiu/mraa-gpio-chardev,yangjae/mraa,Propanu/mraa,noahchense/mraa,stefan-andritoiu/mraa-gpio-chardev,g-vidal/mraa,andreivasiliu2211/mraa,sergev/mraa,seem-sky/mraa,jontrulson/mraa,g-vidal/mraa,Pillar1989/mraa,yongli3/mraa,yangjae/mraa,spitfire88/mraa,stefan-andritoiu/mraa-gpio-chardev,spitfire88/mraa,intel-iot-devkit/mraa,sergev/mraa,smileboywtu/mraa,w4ilun/mraa,petreeftime/mraa,stefan-andritoiu/mraa,Pillar1989/mraa,timrtoo/Intel,spitfire88/mraa,Pillar1989/mraa,arfoll/mraa,sundw2014/mraa,yoyojacky/mraa,ncrastanaren/mraa,intel-iot-devkit/mraa,smileboywtu/mraa,Propanu/mraa,jontrulson/mraa,malikabhi05/mraa,timrtoo/Intel,noahchense/mraa,w4ilun/mraa,alext-mkrs/mraa,intel-iot-devkit/mraa,anonymouse64/mraa,Meirtz/mraa,yoyojacky/mraa,pctj101/mraa,SyrianSpock/mraa,malikabhi05/mraa,malikabhi05/mraa,damcclos/mraa,ncrastanaren/mraa,nioinnovation/mraa,malikabhi05/mraa,timrtoo/Intel,intel-iot-devkit/mraa,alexandru-elisei/mraa,arunlee77/mraa,KurtE/mraa,mircea/mraa,Meirtz/mraa,Propanu/mraa,g-vidal/mraa,anonymouse64/mraa,alext-mkrs/mraa,neuroidss/mraa,stefan-andritoiu/mraa,jontrulson/mraa,yoyojacky/mraa,neuberfran/mraa,nioinnovation/mraa,KurtE/mraa,alex1818/mraa,yongli3/mraa,Hbrinj/mraa,sergev/mraa,neuberfran/mraa,ProfFan/mraa,seem-sky/mraa,sundw2014/mraa,pctj101/mraa,Kiritoalex/mraa,whbruce/mraa