v4l2: cast unused return to void
authorLuis de Bethencourt <luis.bg@samsung.com>
Tue, 21 Apr 2015 14:21:33 +0000 (15:21 +0100)
committerLuis de Bethencourt <luis.bg@samsung.com>
Tue, 21 Apr 2015 14:21:37 +0000 (15:21 +0100)
Quell unchecked return value defect by casting the return value to void and
making it explicit it is going to be ignored.

CID #206031

sys/v4l2/v4l2_calls.c

index d1cc284..356d42f 100644 (file)
@@ -842,7 +842,7 @@ gst_v4l2_set_frequency (GstV4l2Object * v4l2object,
 
   freq.tuner = tunernum;
   /* fill in type - ignore error */
-  v4l2_ioctl (v4l2object->video_fd, VIDIOC_G_FREQUENCY, &freq);
+  (void) v4l2_ioctl (v4l2object->video_fd, VIDIOC_G_FREQUENCY, &freq);
   freq.frequency = frequency / channel->freq_multiplicator;
 
   if (v4l2_ioctl (v4l2object->video_fd, VIDIOC_S_FREQUENCY, &freq) < 0)