Commit 7dfdae8e authored by Tomas Winkler's avatar Tomas Winkler Committed by Mauro Carvalho Chehab

[media] easycap: drop initializations to 0 in the probe functions

peasycap was allocated using kzalloc so drop all
to zero initializations
Signed-off-by: default avatarTomas Winkler <tomas.winkler@intel.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent 101dca42
...@@ -3005,11 +3005,6 @@ static int easycap_usb_probe(struct usb_interface *intf, ...@@ -3005,11 +3005,6 @@ static int easycap_usb_probe(struct usb_interface *intf,
mutex_unlock(&mutex_dongle); mutex_unlock(&mutex_dongle);
peasycap->allocation_video_struct = sizeof(struct easycap); peasycap->allocation_video_struct = sizeof(struct easycap);
peasycap->allocation_video_page = 0;
peasycap->allocation_video_urb = 0;
peasycap->allocation_audio_struct = 0;
peasycap->allocation_audio_page = 0;
peasycap->allocation_audio_urb = 0;
/*---------------------------------------------------------------------------*/ /*---------------------------------------------------------------------------*/
/* /*
...@@ -3019,7 +3014,6 @@ static int easycap_usb_probe(struct usb_interface *intf, ...@@ -3019,7 +3014,6 @@ static int easycap_usb_probe(struct usb_interface *intf,
peasycap->pusb_device = usbdev; peasycap->pusb_device = usbdev;
peasycap->pusb_interface = intf; peasycap->pusb_interface = intf;
peasycap->ilk = 0;
peasycap->microphone = false; peasycap->microphone = false;
peasycap->video_interface = -1; peasycap->video_interface = -1;
...@@ -3038,11 +3032,6 @@ static int easycap_usb_probe(struct usb_interface *intf, ...@@ -3038,11 +3032,6 @@ static int easycap_usb_probe(struct usb_interface *intf,
peasycap->frame_buffer_many = FRAME_BUFFER_MANY; peasycap->frame_buffer_many = FRAME_BUFFER_MANY;
for (k = 0; k < INPUT_MANY; k++)
peasycap->lost[k] = 0;
peasycap->skip = 0;
peasycap->skipped = 0;
peasycap->offerfields = 0;
/*---------------------------------------------------------------------------*/ /*---------------------------------------------------------------------------*/
/* /*
* DYNAMICALLY FILL IN THE AVAILABLE FORMATS ... * DYNAMICALLY FILL IN THE AVAILABLE FORMATS ...
...@@ -3054,22 +3043,10 @@ static int easycap_usb_probe(struct usb_interface *intf, ...@@ -3054,22 +3043,10 @@ static int easycap_usb_probe(struct usb_interface *intf,
return -EFAULT; return -EFAULT;
} }
JOM(4, "%i formats available\n", rc); JOM(4, "%i formats available\n", rc);
/*---------------------------------------------------------------------------*/
/* /* ... AND POPULATE easycap.inputset[] */
* ... AND POPULATE easycap.inputset[]
*/
/*---------------------------------------------------------------------------*/
/* FIXME: maybe we just use memset 0 */
inputset = peasycap->inputset; inputset = peasycap->inputset;
for (k = 0; k < INPUT_MANY; k++) {
inputset[k].input_ok = 0;
inputset[k].standard_offset_ok = 0;
inputset[k].format_offset_ok = 0;
inputset[k].brightness_ok = 0;
inputset[k].contrast_ok = 0;
inputset[k].saturation_ok = 0;
inputset[k].hue_ok = 0;
}
fmtidx = peasycap->ntsc ? NTSC_M : PAL_BGHIN; fmtidx = peasycap->ntsc ? NTSC_M : PAL_BGHIN;
m = 0; m = 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment