diff options
author | Srirangan <smadhavan@nvidia.com> | 2018-08-20 06:39:12 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2018-08-28 09:46:59 -0400 |
commit | 07d3387ceb10cdc4d4413d04b1223cbd5181438b (patch) | |
tree | c86a661e6bff08c43f45fdb2b79be9ba1a6531b1 /drivers/gpu/nvgpu/gv11b/subctx_gv11b.c | |
parent | 3e5e4804f9c2bf5b914012852b56dbbbc00f8253 (diff) |
gpu: nvgpu: gv11b: 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: I1562bd1b109a100af29bd147ed8b56463b6a8e63
Signed-off-by: Srirangan <smadhavan@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1796674
Reviewed-by: svc-misra-checker <svc-misra-checker@nvidia.com>
Reviewed-by: Scott Long <scottl@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/gv11b/subctx_gv11b.c')
-rw-r--r-- | drivers/gpu/nvgpu/gv11b/subctx_gv11b.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/gv11b/subctx_gv11b.c b/drivers/gpu/nvgpu/gv11b/subctx_gv11b.c index f0cf920c..d742e8dc 100644 --- a/drivers/gpu/nvgpu/gv11b/subctx_gv11b.c +++ b/drivers/gpu/nvgpu/gv11b/subctx_gv11b.c | |||
@@ -105,8 +105,9 @@ int gv11b_update_subctx_header(struct channel_gk20a *c, u64 gpu_va) | |||
105 | struct nvgpu_gr_ctx *gr_ctx; | 105 | struct nvgpu_gr_ctx *gr_ctx; |
106 | 106 | ||
107 | tsg = tsg_gk20a_from_ch(c); | 107 | tsg = tsg_gk20a_from_ch(c); |
108 | if (!tsg) | 108 | if (!tsg) { |
109 | return -EINVAL; | 109 | return -EINVAL; |
110 | } | ||
110 | 111 | ||
111 | gr_ctx = &tsg->gr_ctx; | 112 | gr_ctx = &tsg->gr_ctx; |
112 | 113 | ||