raw1394: Remove unneeded variable
authorEdward Hervey <bilboed@bilboed.com>
Sun, 9 Aug 2009 07:43:41 +0000 (09:43 +0200)
committerEdward Hervey <bilboed@bilboed.com>
Mon, 10 Aug 2009 07:58:34 +0000 (09:58 +0200)
ext/raw1394/gstdv1394src.c

index 05f1178..543adc9 100644 (file)
@@ -713,7 +713,6 @@ gst_dv1394src_discover_avc_node (GstDV1394Src * src)
   /* loop over all our ports */
   for (; j < m && node == -1; j++) {
     raw1394handle_t handle;
-    gint n_ports;
     struct raw1394_portinfo pinf[16];
 
     /* open the port */
@@ -722,7 +721,7 @@ gst_dv1394src_discover_avc_node (GstDV1394Src * src)
       GST_WARNING ("raw1394 - failed to get handle: %s.\n", strerror (errno));
       continue;
     }
-    if ((n_ports = raw1394_get_port_info (handle, pinf, 16)) < 0) {
+    if (raw1394_get_port_info (handle, pinf, 16) < 0) {
       GST_WARNING ("raw1394 - failed to get port info: %s.\n",
           strerror (errno));
       goto next;