mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-14 06:35:12 +00:00
drm: xlnx: zynqmp_dpsub: Use local variable in zynqmp_disp_layer_update()
Reuse the local info variable instead of going through the layer pointer in zynqmp_disp_layer_update(). This doesn't introduce any functional change. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
This commit is contained in:
parent
36d1b456c5
commit
457d7180d6
1 changed files with 1 additions and 1 deletions
|
@ -1088,7 +1088,7 @@ static int zynqmp_disp_layer_update(struct zynqmp_disp_layer *layer,
|
|||
const struct drm_format_info *info = layer->drm_fmt;
|
||||
unsigned int i;
|
||||
|
||||
for (i = 0; i < layer->drm_fmt->num_planes; i++) {
|
||||
for (i = 0; i < info->num_planes; i++) {
|
||||
unsigned int width = state->crtc_w / (i ? info->hsub : 1);
|
||||
unsigned int height = state->crtc_h / (i ? info->vsub : 1);
|
||||
struct zynqmp_disp_layer_dma *dma = &layer->dmas[i];
|
||||
|
|
Loading…
Reference in a new issue