]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
Remove useless NULL-check in ratinglabels.c
authorFlole <Flole998@users.noreply.github.com>
Sat, 22 Jun 2024 20:21:10 +0000 (22:21 +0200)
committerFlole <Flole998@users.noreply.github.com>
Sun, 23 Jun 2024 02:22:19 +0000 (04:22 +0200)
Found by coverity

src/ratinglabels.c

index 52ea4f1fafbe347747b0d001e92189c5434cdf8d..570887556b72f5a3e6cb6ab0147df8272df3cc62 100644 (file)
@@ -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;