From 5cf1fddbab5a38028acd62b08198c3b9fe6465f7 Mon Sep 17 00:00:00 2001 From: Alex Waterman Date: Mon, 2 May 2016 17:03:43 -0700 Subject: gpu: nvgpu: Balance curly braces In some of the conditionally compiled code in the nvgpu driver there are places where the code looks like: #ifdef LINUX_VERSION_CODE < KERNEL_VERSION(3,18,0) some-loop { #else a-diff-loop { #endif /* Some code... */ } This leaves unbalanced curley braces: two open braces for one close brace. This messes up some editors syntax highlighting and auto- indentation features. This patch puts in the extra brace. It's not necessary for compiling code but it makes some editors much happier. Change-Id: Ida28bc001cc840fe52a43982db934d49c07cc7d3 Signed-off-by: Alex Waterman Reviewed-on: http://git-master/r/1153668 Reviewed-by: Konsta Holtta GVS: Gerrit_Virtual_Submit Reviewed-by: Terje Bergstrom --- drivers/gpu/nvgpu/gk20a/sync_gk20a.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'drivers/gpu/nvgpu/gk20a/sync_gk20a.c') diff --git a/drivers/gpu/nvgpu/gk20a/sync_gk20a.c b/drivers/gpu/nvgpu/gk20a/sync_gk20a.c index 21622d3d..3e14fa9c 100644 --- a/drivers/gpu/nvgpu/gk20a/sync_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/sync_gk20a.c @@ -151,12 +151,12 @@ static struct gk20a_sync_pt *gk20a_sync_pt_create_shared( /* Store the dependency fence for this pt. */ if (dependency) { #if LINUX_VERSION_CODE < KERNEL_VERSION(3,18,0) - if (dependency->status == 0) { + if (dependency->status == 0) #else - if (!atomic_read(&dependency->status)) { + if (!atomic_read(&dependency->status)) #endif shared->dep = dependency; - } else { + else { shared->dep_timestamp = ktime_get(); sync_fence_put(dependency); } -- cgit v1.2.2