From: Flole Date: Sat, 22 Jun 2024 20:21:10 +0000 (+0200) Subject: Remove useless NULL-check in ratinglabels.c X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c8435a0985ca66a9bd12f33703c8f76c95ddea43;p=thirdparty%2Ftvheadend.git Remove useless NULL-check in ratinglabels.c Found by coverity --- diff --git a/src/ratinglabels.c b/src/ratinglabels.c index 52ea4f1fa..570887556 100644 --- a/src/ratinglabels.c +++ b/src/ratinglabels.c @@ -309,10 +309,8 @@ ratinglabel_create(const char *uuid, htsmsg_t *conf, } //Load the rating icon into the image cache if it is not already there. - if(rl){ - if(rl->rl_icon){ - (void)imagecache_get_id(rl->rl_icon); - } + if(rl->rl_icon){ + (void)imagecache_get_id(rl->rl_icon); } rl->rl_saveflag = 1;