diff options
author | Stefan Agner <stefan@agner.ch> | 2018-06-17 10:48:22 +0200 |
---|---|---|
committer | Boris Brezillon <boris.brezillon@bootlin.com> | 2018-06-17 12:25:27 +0200 |
commit | 9fcf2b3c1c0276650fea537c71b513d27d929b05 (patch) | |
tree | 29234af5d76156e2a872279368aedee36b71ff99 /drivers/gpu/drm/bridge/sil-sii8620.c | |
parent | c7d6d511eb56495f065600c90336da0f0fe1b174 (diff) |
drm/atmel-hlcdc: check stride values in the first plane
The statement always evaluates to true since the struct fields
are arrays. This has shown up as a warning when compiling with
clang:
warning: address of array 'desc->layout.xstride' will always
evaluate to 'true' [-Wpointer-bool-conversion]
Check for values in the first plane instead.
Fixes: 1a396789f65a ("drm: add Atmel HLCDC Display Controller support")
Cc: <stable@vger.kernel.org>
Signed-off-by: Stefan Agner <stefan@agner.ch>
Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180617084826.31885-1-stefan@agner.ch
Diffstat (limited to 'drivers/gpu/drm/bridge/sil-sii8620.c')
0 files changed, 0 insertions, 0 deletions