mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-24 02:22:34 +03:00
gpu: nvgpu: fixed misra-c 16.6 violation
The switch statement "switch (interleave_level)" has no conforming switch clauses as none of the clauses end with unconditional break statement. The above switch statement is now fixed in accordance to misra-c standards. Jira NVGPU-1555 Change-Id: Id2ea98826b5fff51f42eed83a597d8e0e273ebde Signed-off-by: Debarshi Dutta <ddutta@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1962545 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
committed by
mobile promotions
parent
f80d2a01f4
commit
bcfce1af62
@@ -4499,19 +4499,27 @@ u32 gk20a_fifo_pbdma_acquire_val(u64 timeout)
|
||||
|
||||
const char *gk20a_fifo_interleave_level_name(u32 interleave_level)
|
||||
{
|
||||
const char *ret_string = NULL;
|
||||
|
||||
switch (interleave_level) {
|
||||
case NVGPU_FIFO_RUNLIST_INTERLEAVE_LEVEL_LOW:
|
||||
return "LOW";
|
||||
ret_string = "LOW";
|
||||
break;
|
||||
|
||||
case NVGPU_FIFO_RUNLIST_INTERLEAVE_LEVEL_MEDIUM:
|
||||
return "MEDIUM";
|
||||
ret_string = "MEDIUM";
|
||||
break;
|
||||
|
||||
case NVGPU_FIFO_RUNLIST_INTERLEAVE_LEVEL_HIGH:
|
||||
return "HIGH";
|
||||
ret_string = "HIGH";
|
||||
break;
|
||||
|
||||
default:
|
||||
return "?";
|
||||
ret_string = "?";
|
||||
break;
|
||||
}
|
||||
|
||||
return ret_string;
|
||||
}
|
||||
|
||||
u32 gk20a_fifo_get_sema_wait_cmd_size(void)
|
||||
|
||||
Reference in New Issue
Block a user