From dad26043c321eeaefd8948132c7f5bfa5d6cf7f9 Mon Sep 17 00:00:00 2001 From: Luis de Bethencourt Date: Tue, 21 Apr 2015 15:21:33 +0100 Subject: [PATCH] v4l2: cast unused return to void 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/v4l2/v4l2_calls.c b/sys/v4l2/v4l2_calls.c index d1cc2842db..356d42f08f 100644 --- a/sys/v4l2/v4l2_calls.c +++ b/sys/v4l2/v4l2_calls.c @@ -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) -- 2.34.1