diff options
author | Srirangan <smadhavan@nvidia.com> | 2018-08-02 04:45:54 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2018-08-06 20:36:39 -0400 |
commit | 17aeea4a2ffa23fc9dbcdc84cda747fe5a025131 (patch) | |
tree | d4be52f246724fb9cb99047059073b93aeb089ce /drivers/gpu/nvgpu/gk20a/regops_gk20a.c | |
parent | 6c9daf7626567fffc9d1ccd475865e81ae90a973 (diff) |
gpu: nvgpu: gk20a: 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/gk20a/
JIRA NVGPU-989
Change-Id: I2f422e9bc2b03229f4d2c3198613169ce5e7f3ee
Signed-off-by: Srirangan <smadhavan@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1791019
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/regops_gk20a.c')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/regops_gk20a.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/regops_gk20a.c b/drivers/gpu/nvgpu/gk20a/regops_gk20a.c index 232d01a7..cd3fe2f7 100644 --- a/drivers/gpu/nvgpu/gk20a/regops_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/regops_gk20a.c | |||
@@ -47,9 +47,10 @@ static int regop_bsearch_range_cmp(const void *pkey, const void *pelem) | |||
47 | static inline bool linear_search(u32 offset, const u32 *list, int size) | 47 | static inline bool linear_search(u32 offset, const u32 *list, int size) |
48 | { | 48 | { |
49 | int i; | 49 | int i; |
50 | for (i = 0; i < size; i++) | 50 | for (i = 0; i < size; i++) { |
51 | if (list[i] == offset) | 51 | if (list[i] == offset) |
52 | return true; | 52 | return true; |
53 | } | ||
53 | return false; | 54 | return false; |
54 | } | 55 | } |
55 | 56 | ||