Skip to content

Commit c8435a0

Browse files
committed
Remove useless NULL-check in ratinglabels.c
Found by coverity
1 parent cd6bfbb commit c8435a0

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

‎src/ratinglabels.c‎

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -309,10 +309,8 @@ ratinglabel_create(const char *uuid, htsmsg_t *conf,
309309
}
310310

311311
//Load the rating icon into the image cache if it is not already there.
312-
if(rl){
313-
if(rl->rl_icon){
314-
(void)imagecache_get_id(rl->rl_icon);
315-
}
312+
if(rl->rl_icon){
313+
(void)imagecache_get_id(rl->rl_icon);
316314
}
317315

318316
rl->rl_saveflag = 1;

0 commit comments

Comments
 (0)