diff options
author | Srirangan <smadhavan@nvidia.com> | 2018-08-23 02:37:41 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2018-08-28 09:47:28 -0400 |
commit | 4032e8915a65aa94f8b556676c5606683ec28f52 (patch) | |
tree | dc16ddcc61f9fed52c1c687bb02e6ec13edd28c6 /drivers/gpu/nvgpu/gm20b/hal_gm20b.c | |
parent | 8676b2e65b786497c4a0609f06143e7d1bb1a3c0 (diff) |
gpu: nvgpu: gm20b: 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: I1651ae8ee680bdeb48606569c4e8c2fc7cb87f20
Signed-off-by: Srirangan <smadhavan@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1805077
Reviewed-by: Konsta Holtta <kholtta@nvidia.com>
Reviewed-by: svc-misra-checker <svc-misra-checker@nvidia.com>
GVS: Gerrit_Virtual_Submit
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/gm20b/hal_gm20b.c')
-rw-r--r-- | drivers/gpu/nvgpu/gm20b/hal_gm20b.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/gm20b/hal_gm20b.c b/drivers/gpu/nvgpu/gm20b/hal_gm20b.c index acdf4591..27daccb6 100644 --- a/drivers/gpu/nvgpu/gm20b/hal_gm20b.c +++ b/drivers/gpu/nvgpu/gm20b/hal_gm20b.c | |||
@@ -716,8 +716,9 @@ int gm20b_init_hal(struct gk20a *g) | |||
716 | __nvgpu_set_enabled(g, NVGPU_PMU_PSTATE, false); | 716 | __nvgpu_set_enabled(g, NVGPU_PMU_PSTATE, false); |
717 | 717 | ||
718 | /* Read fuses to check if gpu needs to boot in secure/non-secure mode */ | 718 | /* Read fuses to check if gpu needs to boot in secure/non-secure mode */ |
719 | if (gops->fuse.check_priv_security(g)) | 719 | if (gops->fuse.check_priv_security(g)) { |
720 | return -EINVAL; /* Do not boot gpu */ | 720 | return -EINVAL; /* Do not boot gpu */ |
721 | } | ||
721 | 722 | ||
722 | /* priv security dependent ops */ | 723 | /* priv security dependent ops */ |
723 | if (nvgpu_is_enabled(g, NVGPU_SEC_PRIVSECURITY)) { | 724 | if (nvgpu_is_enabled(g, NVGPU_SEC_PRIVSECURITY)) { |