From 236de1df7f803873df720b3103b07f13e5a0ffd1 Mon Sep 17 00:00:00 2001 From: Tim Walker Date: Mon, 26 Feb 2018 01:15:39 +0100 Subject: [PATCH] libhb/param: skip redundant checks. --- libhb/param.c | 6 +++--- 1 file 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); } -- 2.40.0