summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/sun4i
diff options
context:
space:
mode:
authorStefan Agner <stefan@agner.ch>2018-06-17 11:48:22 +0300
committerBoris Brezillon <boris.brezillon@bootlin.com>2018-06-17 13:25:27 +0300
commit9fcf2b3c1c0276650fea537c71b513d27d929b05 (patch)
tree29234af5d76156e2a872279368aedee36b71ff99 /drivers/gpu/drm/sun4i
parentc7d6d511eb56495f065600c90336da0f0fe1b174 (diff)
downloadlinux-9fcf2b3c1c0276650fea537c71b513d27d929b05.tar.xz
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/sun4i')
0 files changed, 0 insertions, 0 deletions