diff options
author | Srirangan <smadhavan@nvidia.com> | 2018-08-20 05:13:41 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2018-08-23 00:55:49 -0400 |
commit | 3fbaee7099039eee84343027dd1ce20679c0c113 (patch) | |
tree | 0de4934723f58cad9cdcdb642927ffce0cfac6d8 /drivers/gpu/nvgpu/common/therm | |
parent | 52305f0514d29e7fb2cb5e2154188e09faa3fe94 (diff) |
gpu: nvgpu: common: Fix MISRA 15.6 violations
MISRA Rule-15.6 requires that all if-else blocks be enclosed in braces,
including single statement blocks. Fix errors due to single statement
if blocks without braces, introducing the braces.
JIRA NVGPU-671
Change-Id: I4d9933c51a297a725f48cbb15520a70494d74aeb
Signed-off-by: Srirangan <smadhavan@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1800833
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/common/therm')
-rw-r--r-- | drivers/gpu/nvgpu/common/therm/therm_gv11b.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/common/therm/therm_gv11b.c b/drivers/gpu/nvgpu/common/therm/therm_gv11b.c index 77edd7e1..419dd75e 100644 --- a/drivers/gpu/nvgpu/common/therm/therm_gv11b.c +++ b/drivers/gpu/nvgpu/common/therm/therm_gv11b.c | |||
@@ -143,8 +143,9 @@ int gv11b_elcg_init_idle_filters(struct gk20a *g) | |||
143 | u32 active_engine_id = 0; | 143 | u32 active_engine_id = 0; |
144 | struct fifo_gk20a *f = &g->fifo; | 144 | struct fifo_gk20a *f = &g->fifo; |
145 | 145 | ||
146 | if (nvgpu_platform_is_simulation(g)) | 146 | if (nvgpu_platform_is_simulation(g)) { |
147 | return 0; | 147 | return 0; |
148 | } | ||
148 | 149 | ||
149 | nvgpu_log_info(g, "init clock/power gate reg"); | 150 | nvgpu_log_info(g, "init clock/power gate reg"); |
150 | 151 | ||