drm/panel: s6e8aa0: silence array overflow warning
authorDan Carpenter <[email protected]>
Wed, 9 Apr 2014 15:21:12 +0000 (18:21 +0300)
committerThierry Reding <[email protected]>
Thu, 5 Jun 2014 14:46:39 +0000 (16:46 +0200)
commit9c911962f9d145fd6f8cb3d93ae58486cef14d53
tree85cd46b3aed63550eb406368a71ed05595473530
parentd16218030f7d5195fcf83a424d8e48b89b013a51
drm/panel: s6e8aa0: silence array overflow warning

Smatch complains that we are reading beyond the end of the array here:

drivers/gpu/drm/panel/panel-s6e8aa0.c:852 s6e8aa0_read_mtp_id()
warn: buffer overflow 's6e8aa0_variants' 4 <= 4

We set the error code, so it's not harmful but it looks like a return
was intended here so lets add that and silence the warning.

Signed-off-by: Dan Carpenter <[email protected]>
Acked-by: Andrzej Hajda <[email protected]>
Signed-off-by: Thierry Reding <[email protected]>
drivers/gpu/drm/panel/panel-s6e8aa0.c