[media] v4l: fix handling of v4l2_input.capabilities
[deliverable/linux.git] / drivers / media / video / ivtv / ivtv-cards.c
index 87afbbee20636f1e9f1192f8592a35954382bd7f..b6f2a2b422839bd9ce6047604e82e18d14e7c153 100644 (file)
@@ -1313,7 +1313,6 @@ int ivtv_get_input(struct ivtv *itv, u16 index, struct v4l2_input *input)
                "Composite 3"
        };
 
-       memset(input, 0, sizeof(*input));
        if (index >= itv->nof_inputs)
                return -EINVAL;
        input->index = index;
@@ -1331,7 +1330,6 @@ int ivtv_get_output(struct ivtv *itv, u16 index, struct v4l2_output *output)
 {
        const struct ivtv_card_output *card_output = itv->card->video_outputs + index;
 
-       memset(output, 0, sizeof(*output));
        if (index >= itv->card->nof_outputs)
                return -EINVAL;
        output->index = index;
This page took 0.025631 seconds and 5 git commands to generate.