avdevice/dshow: Remove unneeded NULL checks
authorMichael Niedermayer <michaelni@gmx.at>
Sun, 28 Dec 2014 17:17:12 +0000 (18:17 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Sun, 28 Dec 2014 17:17:12 +0000 (18:17 +0100)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavdevice/dshow.c

index b20eab6..f326ca2 100644 (file)
@@ -294,8 +294,7 @@ dshow_cycle_devices(AVFormatContext *avctx, ICreateDevEnum *devenum,
         }
 
 fail1:
-        if (buf)
-            av_free(buf);
+        av_free(buf);
         if (bag)
             IPropertyBag_Release(bag);
         IMoniker_Release(m);
@@ -458,8 +457,7 @@ next:
     }
 end:
     IAMStreamConfig_Release(config);
-    if (caps)
-        av_free(caps);
+    av_free(caps);
     if (pformat_set)
         *pformat_set = format_set;
 }