diff options
Diffstat (limited to 'drivers/media/video/ivtv/ivtv-cards.c')
-rw-r--r-- | drivers/media/video/ivtv/ivtv-cards.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/media/video/ivtv/ivtv-cards.c b/drivers/media/video/ivtv/ivtv-cards.c index 87afbbee2063..b6f2a2b42283 100644 --- a/drivers/media/video/ivtv/ivtv-cards.c +++ b/drivers/media/video/ivtv/ivtv-cards.c | |||
@@ -1313,7 +1313,6 @@ int ivtv_get_input(struct ivtv *itv, u16 index, struct v4l2_input *input) | |||
1313 | "Composite 3" | 1313 | "Composite 3" |
1314 | }; | 1314 | }; |
1315 | 1315 | ||
1316 | memset(input, 0, sizeof(*input)); | ||
1317 | if (index >= itv->nof_inputs) | 1316 | if (index >= itv->nof_inputs) |
1318 | return -EINVAL; | 1317 | return -EINVAL; |
1319 | input->index = index; | 1318 | input->index = index; |
@@ -1331,7 +1330,6 @@ int ivtv_get_output(struct ivtv *itv, u16 index, struct v4l2_output *output) | |||
1331 | { | 1330 | { |
1332 | const struct ivtv_card_output *card_output = itv->card->video_outputs + index; | 1331 | const struct ivtv_card_output *card_output = itv->card->video_outputs + index; |
1333 | 1332 | ||
1334 | memset(output, 0, sizeof(*output)); | ||
1335 | if (index >= itv->card->nof_outputs) | 1333 | if (index >= itv->card->nof_outputs) |
1336 | return -EINVAL; | 1334 | return -EINVAL; |
1337 | output->index = index; | 1335 | output->index = index; |