puzzle: remove tautology
authorRémi Denis-Courmont <remi@remlab.net>
Wed, 23 Apr 2014 21:02:00 +0000 (00:02 +0300)
committerRémi Denis-Courmont <remi@remlab.net>
Wed, 23 Apr 2014 21:02:00 +0000 (00:02 +0300)
modules/video_filter/puzzle_mgt.c

index 8f2fd19..d770d7a 100644 (file)
@@ -465,11 +465,9 @@ int puzzle_shuffle( filter_t *p_filter )
 int puzzle_generate_rand_pce_list( filter_t *p_filter, int32_t **pi_pce_lst )
 {
     filter_sys_t *p_sys = p_filter->p_sys;
-
     int32_t i_pieces_nbr = p_sys->s_allocated.i_pieces_nbr;
 
-    if (pi_pce_lst != NULL )
-        free( *pi_pce_lst );
+    free( *pi_pce_lst );
     *pi_pce_lst = calloc( i_pieces_nbr, sizeof(**pi_pce_lst) );
     if( !*pi_pce_lst )
         return VLC_ENOMEM;