summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
diff options
context:
space:
mode:
authorStefan Agner <stefan@agner.ch>2018-06-17 10:48:22 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-07-08 15:30:48 +0200
commitaf597bb61370e337eec93ae655625d3dbd1fc0bb (patch)
tree7aa6396c5602da57b1c9125cb9d46e0fba11e81e /drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
parent7d0ed747bc56ca05868423220c62e64ea525aad7 (diff)
drm/atmel-hlcdc: check stride values in the first plane
commit 9fcf2b3c1c0276650fea537c71b513d27d929b05 upstream. 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 Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_object.c')
0 files changed, 0 insertions, 0 deletions