Fixed dead store warnings
authorArmin Novak <armin.novak@thincast.com>
Thu, 7 Feb 2019 14:35:33 +0000 (15:35 +0100)
committerArmin Novak <armin.novak@thincast.com>
Fri, 5 Apr 2019 07:14:35 +0000 (09:14 +0200)
channels/rdpsnd/client/fake/rdpsnd_fake.c
channels/video/client/video_main.c

index 51c184b..7aa8627 100644 (file)
@@ -137,7 +137,7 @@ UINT freerdp_rdpsnd_client_subsystem_entry(PFREERDP_RDPSND_DEVICE_ENTRY_POINTS p
 {
        ADDIN_ARGV* args;
        rdpsndFakePlugin* fake;
-       UINT ret;
+       UINT ret = CHANNEL_RC_OK;
        fake = (rdpsndFakePlugin*) calloc(1, sizeof(rdpsndFakePlugin));
 
        if (!fake)
@@ -163,9 +163,8 @@ UINT freerdp_rdpsnd_client_subsystem_entry(PFREERDP_RDPSND_DEVICE_ENTRY_POINTS p
                }
        }
 
-       ret = CHANNEL_RC_NO_MEMORY;
        pEntryPoints->pRegisterRdpsndDevice(pEntryPoints->rdpsnd, &fake->device);
-       return CHANNEL_RC_OK;
+       return ret;
 error:
        rdpsnd_fake_free(&fake->device);
        return ret;
index 2258750..b6ca045 100755 (executable)
@@ -498,7 +498,7 @@ static UINT video_PresentationRequest(VideoClientContext* video, TSMM_PRESENTATI
                PresentationContext_unref(presentation);
        }
 
-       return CHANNEL_RC_OK;
+       return ret;
 }