From f6fcecfc6f437a6d24aa113f75e43cb6dbbd5e0f Mon Sep 17 00:00:00 2001 From: Sreejith V Date: Mon, 18 Sep 2017 18:41:27 +0530 Subject: gpu: nvgpu: vgpu: fix indentation Fix gcc 6.4 toolchain comppilation error due to misleading indentation. Bug 200348663 Change-Id: I06858bc5e0a96a0c23228ac9333102080ccb2da2 Signed-off-by: Aparna Das Reviewed-on: https://git-master.nvidia.com/r/1564717 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: svc-mobile-coverity Reviewed-by: svccoveritychecker GVS: Gerrit_Virtual_Submit Reviewed-by: Aingara Paramakuru Reviewed-by: Nirav Patel --- drivers/gpu/nvgpu/vgpu/fifo_vgpu.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'drivers/gpu/nvgpu') diff --git a/drivers/gpu/nvgpu/vgpu/fifo_vgpu.c b/drivers/gpu/nvgpu/vgpu/fifo_vgpu.c index 26e4de02..024dac7b 100644 --- a/drivers/gpu/nvgpu/vgpu/fifo_vgpu.c +++ b/drivers/gpu/nvgpu/vgpu/fifo_vgpu.c @@ -232,15 +232,15 @@ static int init_runlist(struct gk20a *g, struct fifo_gk20a *f) if (!runlist->active_channels) goto clean_up_runlist; - runlist_size = sizeof(u16) * f->num_channels; - for (i = 0; i < MAX_RUNLIST_BUFFERS; i++) { - int err = nvgpu_dma_alloc_sys(g, runlist_size, + runlist_size = sizeof(u16) * f->num_channels; + for (i = 0; i < MAX_RUNLIST_BUFFERS; i++) { + int err = nvgpu_dma_alloc_sys(g, runlist_size, &runlist->mem[i]); - if (err) { - dev_err(d, "memory allocation failed\n"); - goto clean_up_runlist; - } + if (err) { + dev_err(d, "memory allocation failed\n"); + goto clean_up_runlist; } + } nvgpu_mutex_init(&runlist->mutex); /* None of buffers is pinned if this value doesn't change. -- cgit v1.2.2