diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2019-01-18 13:20:12 +0100 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2019-01-28 14:24:53 +0100 |
commit | 21c76bd19e0c4b780474fe7cb285766edc9715f0 (patch) | |
tree | 20d6ed9dab3e5c50b2bc2c9ff4d9cc65ca80cc2b /drivers/gpu/drm/qxl/qxl_draw.c | |
parent | 90adda2ce898c7a76d1a55d4650ade8cc957e54f (diff) |
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
Diffstat (limited to 'drivers/gpu/drm/qxl/qxl_draw.c')
0 files changed, 0 insertions, 0 deletions