]> granicus.if.org Git - handbrake/commitdiff
libhb/param: skip redundant checks.
authorTim Walker <tdskywalker@gmail.com>
Mon, 26 Feb 2018 00:15:39 +0000 (01:15 +0100)
committerTim Walker <tdskywalker@gmail.com>
Mon, 26 Feb 2018 00:15:39 +0000 (01:15 +0100)
libhb/param.c

index 90d2debc14db276c50f296a3bb2923bf0dc0e777..55f9a9b204228123ad2196fc0badbfc63fffebfa 100644 (file)
@@ -247,7 +247,7 @@ static hb_dict_t * generate_nlmeans_settings(const char *preset,
     if (preset == NULL)
         return NULL;
 
-    if (preset == NULL || !strcasecmp(preset, "custom"))
+    if (!strcasecmp(preset, "custom"))
     {
         return hb_parse_filter_settings(custom);
     }
@@ -472,7 +472,7 @@ static hb_dict_t * generate_unsharp_settings(const char *preset,
     if (preset == NULL)
         return NULL;
 
-    if (preset == NULL || !strcasecmp(preset, "custom"))
+    if (!strcasecmp(preset, "custom"))
     {
         return hb_parse_filter_settings(custom);
     }
@@ -670,7 +670,7 @@ static hb_dict_t * generate_lapsharp_settings(const char *preset,
     if (preset == NULL)
         return NULL;
 
-    if (preset == NULL || !strcasecmp(preset, "custom"))
+    if (!strcasecmp(preset, "custom"))
     {
         return hb_parse_filter_settings(custom);
     }