Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[media] cx18: Fix warnings introduced during cleanup

I misused the ktime API, and failed to remove some traces of the
in-kernel format conversion. Fix these, so the the driver builds
without warnings.

Signed-off-by: Simon Farnsworth <simon.farnsworth@onelan.co.uk>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>

authored by

Simon Farnsworth and committed by
Mauro Carvalho Chehab
bea3c54f 5f708812

+2 -3
+2 -3
drivers/media/video/cx18/cx18-mailbox.c
··· 164 164 { 165 165 struct cx18_videobuf_buffer *vb_buf; 166 166 struct cx18_buffer *buf; 167 - u8 *p, u; 167 + u8 *p; 168 168 u32 offset = 0; 169 169 int dispatch = 0; 170 - int i; 171 170 172 171 if (mdl->bytesused == 0) 173 172 return; ··· 202 203 } 203 204 204 205 if (dispatch) { 205 - ktime_get_ts(&vb_buf->vb.ts); 206 + vb_buf->vb.ts = ktime_to_timeval(ktime_get()); 206 207 list_del(&vb_buf->vb.queue); 207 208 vb_buf->vb.state = VIDEOBUF_DONE; 208 209 wake_up(&vb_buf->vb.done);