diff options
author | Srirangan <smadhavan@nvidia.com> | 2018-08-01 03:32:14 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2018-08-02 16:56:31 -0400 |
commit | 63e6e8ee3ee9ce01b1f7d4c0014bb589df105d71 (patch) | |
tree | f4db057c93973a9ad4afa15d1c6e5e1f2440c241 /drivers/gpu/nvgpu/common/semaphore.c | |
parent | e6c135ecb70e8b966fc036587301c979ae70e869 (diff) |
gpu: nvgpu: common: Fix MISRA 15.6 violations
This fixes errors due to single statement loop bodies
without braces, which is part of Rule 15.6 of MISRA.
This patch covers in gpu/nvgpu/common/
JIRA NVGPU-989
Change-Id: Ic6a98a1cd04e4524dabf650e2f6e73c6b5a1db9d
Signed-off-by: Srirangan <smadhavan@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1786207
Reviewed-by: svc-misra-checker <svc-misra-checker@nvidia.com>
Reviewed-by: Adeel Raza <araza@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Alex Waterman <alexw@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/common/semaphore.c')
-rw-r--r-- | drivers/gpu/nvgpu/common/semaphore.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/common/semaphore.c b/drivers/gpu/nvgpu/common/semaphore.c index fe4131c3..65aeb9eb 100644 --- a/drivers/gpu/nvgpu/common/semaphore.c +++ b/drivers/gpu/nvgpu/common/semaphore.c | |||
@@ -77,8 +77,9 @@ static int __nvgpu_semaphore_sea_grow(struct nvgpu_semaphore_sea *sea) | |||
77 | * integer range. This way any buggy comparisons would start to fail | 77 | * integer range. This way any buggy comparisons would start to fail |
78 | * sooner rather than later. | 78 | * sooner rather than later. |
79 | */ | 79 | */ |
80 | for (i = 0; i < PAGE_SIZE * SEMAPHORE_POOL_COUNT; i += 4) | 80 | for (i = 0; i < PAGE_SIZE * SEMAPHORE_POOL_COUNT; i += 4) { |
81 | nvgpu_mem_wr(gk20a, &sea->sea_mem, i, 0xfffffff0); | 81 | nvgpu_mem_wr(gk20a, &sea->sea_mem, i, 0xfffffff0); |
82 | } | ||
82 | 83 | ||
83 | out: | 84 | out: |
84 | __unlock_sema_sea(sea); | 85 | __unlock_sema_sea(sea); |