X-Git-Url: https://git.gag.com/?a=blobdiff_plain;ds=sidebyside;f=src%2Fjtag%2Fdrivers%2Fparport.c;h=b203c828ba0febc0cf62b8bcbf05044c5a60c5a1;hb=08c7b904c38b97f9de72a19196b295652f051268;hp=6d15203ae6e6973bcaefc6314ba937beb55c6448;hpb=efd1d642220a4f6d3b9a9607c186452b265400d2;p=fw%2Fopenocd diff --git a/src/jtag/drivers/parport.c b/src/jtag/drivers/parport.c index 6d15203ae..b203c828b 100644 --- a/src/jtag/drivers/parport.c +++ b/src/jtag/drivers/parport.c @@ -237,7 +237,7 @@ static int parport_get_giveio_access(void) HANDLE h; OSVERSIONINFO version; - version.dwOSVersionInfoSize = sizeof version; + version.dwOSVersionInfoSize = sizeof(version); if (!GetVersionEx(&version)) { errno = EINVAL; return -1; @@ -392,10 +392,8 @@ static int parport_quit(void) parport_write_data(); } - if (parport_cable) { - free(parport_cable); - parport_cable = NULL; - } + free(parport_cable); + parport_cable = NULL; return ERROR_OK; }