swscale/utils: remove redundant NULL checks before sws_freeVec()
authorMichael Niedermayer <michaelni@gmx.at>
Tue, 17 Sep 2013 19:48:54 +0000 (21:48 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Tue, 17 Sep 2013 19:48:54 +0000 (21:48 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libswscale/utils.c

index 68c5807..05ab0c6 100644 (file)
@@ -1953,14 +1953,10 @@ void sws_freeFilter(SwsFilter *filter)
     if (!filter)
         return;
 
-    if (filter->lumH)
-        sws_freeVec(filter->lumH);
-    if (filter->lumV)
-        sws_freeVec(filter->lumV);
-    if (filter->chrH)
-        sws_freeVec(filter->chrH);
-    if (filter->chrV)
-        sws_freeVec(filter->chrV);
+    sws_freeVec(filter->lumH);
+    sws_freeVec(filter->lumV);
+    sws_freeVec(filter->chrH);
+    sws_freeVec(filter->chrV);
     av_free(filter);
 }