diff options
author | Mauro Carvalho Chehab <mchehab+samsung@kernel.org> | 2018-08-07 16:48:36 +0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab+samsung@kernel.org> | 2018-08-08 17:57:14 +0300 |
commit | 6c33d826b5c468033c21d8653d148dd758bbab28 (patch) | |
tree | e8bb46d67f07844d21771ce4ca349136e586aa98 /drivers/gpu | |
parent | dcefa533bd97922a3cac37f395247082be44600b (diff) | |
download | linux-6c33d826b5c468033c21d8653d148dd758bbab28.tar.xz |
media: isp: fix a warning about a wrong struct initializer
As sparse complains:
drivers/media/platform/omap3isp/isp.c:303:39: warning: Using plain integer as NULL pointer
when a struct is initialized with { 0 }, actually the first
element of the struct is initialized with zeros, initializing the
other elements recursively. That can even generate gcc warnings
on nested structs.
So, instead, use the gcc-specific syntax for that (with is used
broadly inside the Kernel), initializing it with {};
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Diffstat (limited to 'drivers/gpu')
0 files changed, 0 insertions, 0 deletions