]> git.baikalelectronics.ru Git - kernel.git/commit
media: adv7842: remove spurious & and fix vga_edid size
authorHans Verkuil <hverkuil-cisco@xs4all.nl>
Thu, 10 Jun 2021 06:11:40 +0000 (08:11 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Thu, 17 Jun 2021 08:25:23 +0000 (10:25 +0200)
commitd5ab618e066ae0b973799525bfc4008bec0c78a9
tree98e2519bf6a727d7b6a460378184b0381ac1daa1
parent4857d5bb7eeeeab762c0a6c966926add2578c154
media: adv7842: remove spurious & and fix vga_edid size

No need to use & to get the start address of an array.

Fix the size of vga_edid.edid to a single block (128 bytes) to fix
this smatch error:

adv7842.c:2538 adv7842_set_edid() error: memcpy() '&state->vga_edid.edid' too small (128 vs 512)

Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/i2c/adv7842.c