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;

Regards,
Ezequiel.
--
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