summaryrefslogtreecommitdiffstats
path: root/libhb
diff options
context:
space:
mode:
authorTim Walker <[email protected]>2018-02-26 01:15:39 +0100
committerTim Walker <[email protected]>2018-02-26 01:15:39 +0100
commit236de1df7f803873df720b3103b07f13e5a0ffd1 (patch)
tree24c8628a8a11d32442e5b74462850a181691b7cd /libhb
parenta9b38adc6a677ec23bf9bfd2c77ccfbe190da176 (diff)
libhb/param: skip redundant checks.
Diffstat (limited to 'libhb')
-rw-r--r--libhb/param.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libhb/param.c b/libhb/param.c
index 90d2debc1..55f9a9b20 100644
--- a/libhb/param.c
+++ b/libhb/param.c
@@ -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);
}