summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/drm_dp_mst_topology.c
diff options
context:
space:
mode:
authorDamien Lespiau <damien.lespiau@intel.com>2014-07-14 14:53:44 +0400
committerDaniel Vetter <daniel.vetter@ffwll.ch>2014-07-18 17:39:29 +0400
commit7389ad4b6515c2de6402bfafdfebf0b319790d16 (patch)
tree80747706c0cd3738254e00de40c873511c020613 /drivers/gpu/drm/drm_dp_mst_topology.c
parent3281cc7e341b6dc029965c74a8dd3be5e942a63c (diff)
downloadlinux-7389ad4b6515c2de6402bfafdfebf0b319790d16.tar.xz
drm/dp-mst-helper: Avoid reading uninitialized value
A static analysis tool tells me that we could try to read an uninitialized 'ret' value. Plug that. Signed-off-by: Damien Lespiau <damien.lespiau@intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'drivers/gpu/drm/drm_dp_mst_topology.c')
-rw-r--r--drivers/gpu/drm/drm_dp_mst_topology.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/drm_dp_mst_topology.c b/drivers/gpu/drm/drm_dp_mst_topology.c
index 369d6c49145b..813b8d186691 100644
--- a/drivers/gpu/drm/drm_dp_mst_topology.c
+++ b/drivers/gpu/drm/drm_dp_mst_topology.c
@@ -1644,7 +1644,7 @@ int drm_dp_update_payload_part2(struct drm_dp_mst_topology_mgr *mgr)
{
struct drm_dp_mst_port *port;
int i;
- int ret;
+ int ret = 0;
mutex_lock(&mgr->payload_lock);
for (i = 0; i < mgr->max_payloads; i++) {