media-add-ons/usb_webcam: Fix -Wclass-memaccess

Remove memset(), since WebCamAddOn()::FillDefaultFlavorInfo()
at next line sets all flavor_info members except _reserved_[].

Change-Id: I41b4297a79303b61ccea914133b268b118b0d968
Reviewed-on: https://review.haiku-os.org/c/1118
Reviewed-by: Barrett17 <b.vitruvio@gmail.com>
This commit is contained in:
Murai Takashi 2019-02-28 06:20:01 +09:00 committed by Barrett17
parent 1d3959edfb
commit 88d7c7740a

View File

@ -47,7 +47,6 @@ CamDevice::CamDevice(CamDeviceAddon &_addon, BUSBDevice* _device)
fLocker("WebcamDeviceLock")
{
// fill in the generic flavor
memset(&fFlavorInfo, 0, sizeof(fFlavorInfo));
_addon.WebCamAddOn()->FillDefaultFlavorInfo(&fFlavorInfo);
// if we use id matching, cache the index to the list
if (fCamDeviceAddon.SupportedDevices()) {