summaryrefslogtreecommitdiff
path: root/ext/curl
diff options
context:
space:
mode:
authorLuis de Bethencourt <luis@debethencourt.com>2015-07-06 15:24:06 +0100
committerLuis de Bethencourt <luis@debethencourt.com>2015-07-06 15:25:16 +0100
commit9fb7add17992f6fea4a1ebd52eb48fdbd1c8c189 (patch)
tree8f1c4e053d34ea728872c0bfd1b98b8ec209698f /ext/curl
parent8551f74a056b7fee2382bb7eab05fe35230ca85f (diff)
downloadgstreamer-plugins-bad-9fb7add17992f6fea4a1ebd52eb48fdbd1c8c189.tar.gz
curlsshsink: remove redundant else statement
Else statement is redundant when the if block finishes with an return.
Diffstat (limited to 'ext/curl')
-rw-r--r--ext/curl/gstcurlsshsink.c19
1 files changed, 9 insertions, 10 deletions
diff --git a/ext/curl/gstcurlsshsink.c b/ext/curl/gstcurlsshsink.c
index d2dac8d89..b06cbcd5b 100644
--- a/ext/curl/gstcurlsshsink.c
+++ b/ext/curl/gstcurlsshsink.c
@@ -416,16 +416,15 @@ gst_curl_ssh_sink_set_options_unlocked (GstCurlBaseSink * bcsink)
bcsink->error = g_strdup_printf ("failed to set SSH_KEYFUNCTION callback: "
"%s", curl_easy_strerror (curl_err));
return FALSE;
- } else {
- /* SSH_KEYFUNCTION callback successfully installed so go on and
- * set the '*clientp' parameter as well */
- if ((curl_err =
- curl_easy_setopt (bcsink->curl, CURLOPT_SSH_KEYDATA,
- sink)) != CURLE_OK) {
- bcsink->error = g_strdup_printf ("failed to set CURLOPT_SSH_KEYDATA: %s",
- curl_easy_strerror (curl_err));
- return FALSE;
- }
+ }
+ /* SSH_KEYFUNCTION callback successfully installed so go on and
+ * set the '*clientp' parameter as well */
+ if ((curl_err =
+ curl_easy_setopt (bcsink->curl, CURLOPT_SSH_KEYDATA,
+ sink)) != CURLE_OK) {
+ bcsink->error = g_strdup_printf ("failed to set CURLOPT_SSH_KEYDATA: %s",
+ curl_easy_strerror (curl_err));
+ return FALSE;
}
return TRUE;