]> git.baikalelectronics.ru Git - kernel.git/commit
drm/drm_dp_mst:remove set but not used variable 'origlen'
authorBo YU <tsu.yubo@gmail.com>
Sat, 18 Jan 2020 08:06:28 +0000 (16:06 +0800)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 22 Jan 2020 09:26:19 +0000 (10:26 +0100)
commit419abf6a1fdcf660f944ae56c1215e14100c9e64
tree84f9bd3907830f3e745b8edc484135f479e05a81
parentb5944bad7b9e824606ef301a01f06f45266bda76
drm/drm_dp_mst:remove set but not used variable 'origlen'

Fixes gcc '-Wunused-but-set-variable' warning:

drivers/gpu/drm/drm_dp_mst_topology.c:3693:16: warning: variable
‘origlen’ set but not used [-Wunused-but-set-variable]
  int replylen, origlen, curreply;

It looks like never use variable origlen after assign value to it.

Fixes: 6fa9de008283 ("drm/helper: add Displayport multi-stream helper (v0.6)")
Signed-off-by: Bo YU <tsu.yubo@gmail.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/20200118080628.mxcx7bfwdas5m7un@kaowomen.cn
drivers/gpu/drm/drm_dp_mst_topology.c