From dfccdeaacec3f176bd786abc027e00a686ede74b Mon Sep 17 00:00:00 2001 From: Philip Elcan Date: Wed, 15 May 2019 13:24:22 -0400 Subject: [PATCH] gpu: nvgpu: mm: fix MISRA 16.4 in dma.c MISRA Rule 16.4 requires a comment or statement in the default lable. This moves a comment in nvgpu_dma_free(0 before the break to be compliant. JIRA NVGPU-3328 Change-Id: Ic4293f486c35eb6396a508508d43d53311fc693c Signed-off-by: Philip Elcan Reviewed-on: https://git-master.nvidia.com/r/2119647 Reviewed-by: svc-mobile-coverity Reviewed-by: svc-mobile-misra GVS: Gerrit_Virtual_Submit Reviewed-by: Alex Waterman Reviewed-by: mobile promotions Tested-by: mobile promotions --- drivers/gpu/nvgpu/common/mm/dma.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/nvgpu/common/mm/dma.c b/drivers/gpu/nvgpu/common/mm/dma.c index 98b4e9962..601a506d9 100644 --- a/drivers/gpu/nvgpu/common/mm/dma.c +++ b/drivers/gpu/nvgpu/common/mm/dma.c @@ -191,7 +191,8 @@ void nvgpu_dma_free(struct gk20a *g, struct nvgpu_mem *mem) nvgpu_dma_free_vid(g, mem); break; default: - break; /* like free() on "null" memory */ + /* like free() on "null" memory */ + break; } }