[media] cx231xx: Replace memcpy with struct assignment
[firefly-linux-kernel-4.4.55.git] / drivers / media / usb / cx231xx / cx231xx-video.c
index 239cb913be5ccaed49b9594825c23509183ae99c..93dfc182ec519d6b4aa1e0e05501d9190305afce 100644 (file)
@@ -2627,8 +2627,7 @@ int cx231xx_register_analog_devices(struct cx231xx *dev)
                     dev->name, video_device_node_name(dev->vdev));
 
        /* Initialize VBI template */
-       memcpy(&cx231xx_vbi_template, &cx231xx_video_template,
-              sizeof(cx231xx_vbi_template));
+       cx231xx_vbi_template = cx231xx_video_template;
        strcpy(cx231xx_vbi_template.name, "cx231xx-vbi");
 
        /* Allocate and fill vbi video_device struct */