From: Tim Walker Date: Mon, 26 Feb 2018 00:15:39 +0000 (+0100) Subject: libhb/param: skip redundant checks. X-Git-Tag: 1.1.0~24 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=236de1df7f803873df720b3103b07f13e5a0ffd1;p=handbrake libhb/param: skip redundant checks. --- 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); }