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)
commit21c76bd19e0c4b780474fe7cb285766edc9715f0
tree20d6ed9dab3e5c50b2bc2c9ff4d9cc65ca80cc2b
parent90adda2ce898c7a76d1a55d4650ade8cc957e54f
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