V4L/DVB (8084): ivtv/cx18: remove unnecessary memsets & KERNEL_VERSION tests
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
This commit is contained in:
committed by
Mauro Carvalho Chehab
parent
8bfb9b1ce6
commit
79afcb10df
@ -679,8 +679,6 @@ static int cx18_encoder_cmd(struct file *file, void *fh,
|
||||
|
||||
CX18_DEBUG_IOCTL("VIDIOC_ENCODER_CMD:\n");
|
||||
|
||||
memset(&enc->raw, 0, sizeof(enc->raw));
|
||||
|
||||
switch (enc->cmd) {
|
||||
case V4L2_ENC_CMD_START:
|
||||
CX18_DEBUG_IOCTL("V4L2_ENC_CMD_START\n");
|
||||
@ -730,8 +728,6 @@ static int cx18_try_encoder_cmd(struct file *file, void *fh,
|
||||
|
||||
CX18_DEBUG_IOCTL("VIDIOC_TRY_ENCDOER_CMD:\n");
|
||||
|
||||
memset(&enc->raw, 0, sizeof(enc->raw));
|
||||
|
||||
switch (enc->cmd) {
|
||||
case V4L2_ENC_CMD_START:
|
||||
CX18_DEBUG_IOCTL("V4L2_ENC_CMD_START\n");
|
||||
|
Reference in New Issue
Block a user