media: platform: mxc v4l2 capture: Fix compilation warnings
authorVipul Kumar <vipul_kumar@mentor.com>
Fri, 28 Dec 2018 13:00:49 +0000 (18:30 +0530)
committerLeonard Crestez <leonard.crestez@nxp.com>
Wed, 17 Apr 2019 23:45:31 +0000 (02:45 +0300)
commit04f4e9e44fd4d2f2379e46e48f26101acb88dfdc
tree55e990868af490d1a35033c91575fe3ab60a04bf
parenta1b5d28886c1a6bc991b0df650052cd19a5ec4f4
media: platform: mxc v4l2 capture: Fix compilation warnings

New warning flag -Wsizeof-pointer-memaccess includes so gcc reporting
following compilation warning.

drivers/media/platform/mxc/capture/mxc_v4l2_capture.c:2003:25: warning: argument to ‘sizeof’ in ‘memset’ call is the same expression as the destination; did you mean to dereference it? [-Wsizeof-pointer-memaccess]
    memset(buf, 0, sizeof(buf));
                         ^
This patch fix this warning.

Signed-off-by: Vipul Kumar <vipul_kumar@mentor.com>
drivers/media/platform/mxc/capture/mxc_v4l2_capture.c