fix channel/smartcard: compiler warnings
authorBernhard Miklautz <bernhard.miklautz@thincast.com>
Mon, 11 Dec 2017 15:25:46 +0000 (16:25 +0100)
committerBernhard Miklautz <bernhard.miklautz@thincast.com>
Wed, 13 Dec 2017 16:04:06 +0000 (17:04 +0100)
* remove unused variables
* remove unused jump label

channels/smartcard/client/smartcard_main.c
channels/smartcard/client/smartcard_operations.c
libfreerdp/common/settings.c

index d3555f9..6fb6b5a 100644 (file)
@@ -680,7 +680,6 @@ UINT DeviceServiceEntry(PDEVICE_SERVICE_ENTRY_POINTS pEntryPoints)
        size_t length;
        RDPDR_SMARTCARD* device;
        SMARTCARD_DEVICE* smartcard;
-       LONG status;
        UINT error = CHANNEL_RC_NO_MEMORY;
        device = (RDPDR_SMARTCARD*) pEntryPoints->device;
        smartcard = (SMARTCARD_DEVICE*) calloc(1, sizeof(SMARTCARD_DEVICE));
index 3070ab3..ccb8d7f 100644 (file)
@@ -581,7 +581,6 @@ static LONG smartcard_GetStatusChangeA_Decode(SMARTCARD_DEVICE* smartcard,
 static LONG smartcard_GetStatusChangeA_Call(SMARTCARD_DEVICE* smartcard,
         SMARTCARD_OPERATION* operation)
 {
-       LONG status;
        UINT32 index;
        GetStatusChange_Return ret;
        LPSCARD_READERSTATEA rgReaderState = NULL;
index fd4b008..9bf72a4 100644 (file)
@@ -309,8 +309,6 @@ out_print_name_error:
 
                return (RDPDR_DEVICE*) _smartcard;
 
-out_smartc_path_error:
-               free(_smartcard->Name);
 out_smartc_name_error:
                free(_smartcard);
                return NULL;