From: Armin Novak Date: Thu, 7 Feb 2019 14:35:33 +0000 (+0100) Subject: Fixed dead store warnings X-Git-Tag: 2.0.0~495^2~28 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5612cbd8e679e65a68edfd5af2fdb99d24d4d914;p=platform%2Fupstream%2Ffreerdp.git Fixed dead store warnings --- diff --git a/channels/rdpsnd/client/fake/rdpsnd_fake.c b/channels/rdpsnd/client/fake/rdpsnd_fake.c index 51c184b..7aa8627 100644 --- a/channels/rdpsnd/client/fake/rdpsnd_fake.c +++ b/channels/rdpsnd/client/fake/rdpsnd_fake.c @@ -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; diff --git a/channels/video/client/video_main.c b/channels/video/client/video_main.c index 2258750..b6ca045 100755 --- a/channels/video/client/video_main.c +++ b/channels/video/client/video_main.c @@ -498,7 +498,7 @@ static UINT video_PresentationRequest(VideoClientContext* video, TSMM_PRESENTATI PresentationContext_unref(presentation); } - return CHANNEL_RC_OK; + return ret; }