From c8435a0985ca66a9bd12f33703c8f76c95ddea43 Mon Sep 17 00:00:00 2001 From: Flole Date: Sat, 22 Jun 2024 22:21:10 +0200 Subject: [PATCH] Remove useless NULL-check in ratinglabels.c Found by coverity --- src/ratinglabels.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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; -- 2.47.3