]> git.baikalelectronics.ru Git - kernel.git/commit
drm/qxl: use qxl_num_crtc directly
authorGerd Hoffmann <kraxel@redhat.com>
Fri, 18 Jan 2019 12:20:12 +0000 (13:20 +0100)
committerGerd Hoffmann <kraxel@redhat.com>
Mon, 28 Jan 2019 13:24:53 +0000 (14:24 +0100)
commita6d627b4853533514b271e186ca07a90abfba47d
tree20d6ed9dab3e5c50b2bc2c9ff4d9cc65ca80cc2b
parent7df2cf54f509cde62cdfe04b252581ed04f2fea2
drm/qxl: use qxl_num_crtc directly

qdev->monitors_config->max_allowed is effectively set by the
qxl.num_heads module parameter, stored in the qxl_num_crtc variable.
Lets get rid of the indirection and use the variable qxl_num_crtc
directly.  The kernel doesn't need to dereference pointers each time it
needs the value, and when reading the code you don't have to trace where
and why qdev->monitors_config->max_allowed is set.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Acked-by: Noralf Trønnes <noralf@tronnes.org>
Link: http://patchwork.freedesktop.org/patch/msgid/20190118122020.27596-16-kraxel@redhat.com
drivers/gpu/drm/qxl/qxl_display.c