Re: [PATCH v3 15/23] drm/qxl: use qxl_num_crtc directly
From: Noralf TrÃnnes
Date: Fri Jan 25 2019 - 12:12:58 EST
Den 18.01.2019 13.20, skrev Gerd Hoffmann:
> 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@xxxxxxxxxx>
> ---
Acked-by: Noralf TrÃnnes <noralf@xxxxxxxxxxx>