Hello Ezequiel,

On Sun, Aug 5, 2012 at 12:24 AM, Ezequiel Garcia <elezegar...@gmail.com> wrote:
> Hi Devendra,
>
> On Sat, Aug 4, 2012 at 3:12 PM, Devendra Naga
> <develkernel412...@gmail.com> wrote:
>>
>>         mutex_init(&ci->lock);
>>         memcpy(&ci->cfg, cfg, sizeof(struct cxd2099_cfg));
>
> While you're still looking at this driver, perhaps you can change the memcpy
> with a plain struct assignment (if you feel like).
> It's really pointless to use a memcpy here.
>
> Something like this:
>
> -       memcpy(&ci->cfg, cfg, sizeof(struct cxd2099_cfg));
> +       ci->cfg = *cfg;
>
Correct, and also one more thing like this is

-           memcpy(&ci->en, &en_templ, sizeof(en_templ));
+          ci->en = en_templ;

Is it ok if i change ci->cfg and ci->en?
> Regards,
> Ezequiel.

Thanks,
--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to