diff options
author | Srirangan <smadhavan@nvidia.com> | 2018-08-23 03:27:45 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2018-08-27 10:52:18 -0400 |
commit | 5c9bedf6f6e3213cd830d045d70f61de49f6e42b (patch) | |
tree | b5ae6359eb15494766d7c1245304837042c0ca5d /drivers/gpu/nvgpu/gp10b/mc_gp10b.c | |
parent | 14949fbad615ef55adf08c39fd7614d1cbd4109e (diff) |
gpu: nvgpu: gp10b: 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: Ib5961506b0f95867a57f8c0d7024568785fe7b93
Signed-off-by: Srirangan <smadhavan@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1797332
Reviewed-by: svc-misra-checker <svc-misra-checker@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Konsta Holtta <kholtta@nvidia.com>
Reviewed-by: Vijayakumar Subbu <vsubbu@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gp10b/mc_gp10b.c')
-rw-r--r-- | drivers/gpu/nvgpu/gp10b/mc_gp10b.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/gp10b/mc_gp10b.c b/drivers/gpu/nvgpu/gp10b/mc_gp10b.c index 063bda7c..9851fc5d 100644 --- a/drivers/gpu/nvgpu/gp10b/mc_gp10b.c +++ b/drivers/gpu/nvgpu/gp10b/mc_gp10b.c | |||
@@ -143,8 +143,9 @@ void mc_gp10b_isr_stall(struct gk20a *g) | |||
143 | g->ops.mc.is_intr_nvlink_pending(g, mc_intr_0)) { | 143 | g->ops.mc.is_intr_nvlink_pending(g, mc_intr_0)) { |
144 | g->ops.nvlink.isr(g); | 144 | g->ops.nvlink.isr(g); |
145 | } | 145 | } |
146 | if (mc_intr_0 & mc_intr_pfb_pending_f() && g->ops.fb.fbpa_isr) | 146 | if (mc_intr_0 & mc_intr_pfb_pending_f() && g->ops.fb.fbpa_isr) { |
147 | g->ops.fb.fbpa_isr(g); | 147 | g->ops.fb.fbpa_isr(g); |
148 | } | ||
148 | 149 | ||
149 | nvgpu_log(g, gpu_dbg_intr, "stall intr done 0x%08x\n", mc_intr_0); | 150 | nvgpu_log(g, gpu_dbg_intr, "stall intr done 0x%08x\n", mc_intr_0); |
150 | 151 | ||